Skip to content

Commit

Permalink
utils/arr: add from method
Browse files Browse the repository at this point in the history
taye committed Dec 2, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 8cee65e commit b8e74ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/arr.js
Original file line number Diff line number Diff line change
@@ -10,7 +10,12 @@ function merge (target, source) {
return target;
}

function from (source) {
return module.exports.merge([], source);
}

module.exports = {
contains,
merge,
from,
};

0 comments on commit b8e74ea

Please sign in to comment.