projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
lodash
/
matches.js
diff --git
a/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/matches.js
b/.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/matches.js
index 11145db37f4fa12cfab5f6f7798c3c3a6de541f1..e10b35198b851776bdf2b175327b31a9d1a5c7e7 100644
(file)
--- a/
.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/matches.js
+++ b/
.config/coc/extensions/node_modules/coc-prettier/node_modules/lodash/matches.js
@@
-16,6
+16,9
@@
var CLONE_DEEP_FLAG = 1;
* values against any array or object value, respectively. See `_.isEqual`
* for a list of supported value comparisons.
*
* values against any array or object value, respectively. See `_.isEqual`
* for a list of supported value comparisons.
*
+ * **Note:** Multiple values can be checked by combining several matchers
+ * using `_.overSome`
+ *
* @static
* @memberOf _
* @since 3.0.0
* @static
* @memberOf _
* @since 3.0.0
@@
-31,6
+34,10
@@
var CLONE_DEEP_FLAG = 1;
*
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
*
* _.filter(objects, _.matches({ 'a': 4, 'c': 6 }));
* // => [{ 'a': 4, 'b': 5, 'c': 6 }]
+ *
+ * // Checking for several possible values
+ * _.filter(objects, _.overSome([_.matches({ 'a': 1 }), _.matches({ 'a': 4 })]));
+ * // => [{ 'a': 1, 'b': 2, 'c': 3 }, { 'a': 4, 'b': 5, 'c': 6 }]
*/
function matches(source) {
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));
*/
function matches(source) {
return baseMatches(baseClone(source, CLONE_DEEP_FLAG));