install gulp to process code
This commit is contained in:
parent
24f6606c2c
commit
b6a3900ee2
1651 changed files with 253427 additions and 39 deletions
19
node_modules/gulp-cli/lib/shared/array-find.js
generated
vendored
Normal file
19
node_modules/gulp-cli/lib/shared/array-find.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
|
||||
function arrayFind(arr, fn) {
|
||||
if (!Array.isArray(arr)) {
|
||||
return;
|
||||
}
|
||||
|
||||
var idx = 0;
|
||||
while (idx < arr.length) {
|
||||
var result = fn(arr[idx]);
|
||||
if (result) {
|
||||
// TODO: This is wrong in Liftoff
|
||||
return arr[idx];
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = arrayFind;
|
||||
Loading…
Add table
Add a link
Reference in a new issue