Initial import with skill sheet working
This commit is contained in:
18
node_modules/liftoff/lib/array_find.js
generated
vendored
Normal file
18
node_modules/liftoff/lib/array_find.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
'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) {
|
||||
return result;
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = arrayFind;
|
Reference in New Issue
Block a user