flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
12
VISUALIZACION/node_modules/underscore/amd/contains.js
generated
vendored
Executable file
12
VISUALIZACION/node_modules/underscore/amd/contains.js
generated
vendored
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
define(['./_isArrayLike', './values', './indexOf'], function (_isArrayLike, values, indexOf) {
|
||||
|
||||
// Determine if the array or object contains a given item (using `===`).
|
||||
function contains(obj, item, fromIndex, guard) {
|
||||
if (!_isArrayLike(obj)) obj = values(obj);
|
||||
if (typeof fromIndex != 'number' || guard) fromIndex = 0;
|
||||
return indexOf(obj, item, fromIndex) >= 0;
|
||||
}
|
||||
|
||||
return contains;
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue