UNPKG
siu
Version:
latest (0.4.0)
0.4.0
0.3.1
0.3.0
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1
Seamless Immutable Utilities
github.com/Versent/siu
Versent/siu
siu
/
lib
/
array
/
reject.js
8 lines
(6 loc)
•
248 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
_ =
require
(
'lodash'
);
var
SI
=
require
(
'seamless-immutable'
);
module
.
exports
=
function
reject
(
records, func
) {
if
(!_.
isArray
(records))
throw
new
Error
(
'reject: Expected records to be an array'
);
return
SI
(_.
reject
(records, func)); }