-
Notifications
You must be signed in to change notification settings - Fork 4
compute find
kgryte edited this page May 12, 2015
·
1 revision
Finds array
elements which satisfy a test condition.
var arr = [ 2, 1, 3, 4 ];
var opts = {
'k': -2,
'returns': '*'
};
function condition( val ) {
return val < 4;
}
var results = compute.find( arr, opts, condition );
// returns [ [2,3], [1,1] ]
For further documentation, see the compute-find module.
- Utilities
- Array Creation
- Sorting and Reshaping Arrays
- Special Functions
- Arithmetic
- Relational Operations
- Logical Operations
- Trigonometry
- Geometry
- Sets
- Discrete Mathematics
- Linear Algebra
- Statistics