Adapter
call
Given a key and a set of arguments, call them when given a context. Primarily useful in composition.
Use a closure to call a stored key with stored arguments.
const call = (key, ...args) => context => context[key](...args);
+ }
30 seconds of code Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.
\ No newline at end of file
diff --git a/snippets/isArrayLike.md b/snippets/isArrayLike.md
index f55ad8328..bd9a13e43 100644
--- a/snippets/isArrayLike.md
+++ b/snippets/isArrayLike.md
@@ -8,6 +8,7 @@ Use the spread operator (`...`) to check if the provided argument is iterable in
+
const isArrayLike = val =>
try {return [...val], true; }
catch (e) { return false; }
diff --git a/tag_database b/tag_database
index 9d64ea1b5..a4a80199d 100644
--- a/tag_database
+++ b/tag_database
@@ -115,6 +115,7 @@ randomIntegerInRange:math
randomNumberInRange:math
readFileLines:node
redirect:browser
+reducedFilter:uncategorized
remove:array
repeatString:string
reverseString:string