Comparing version 1.1.1 to 1.1.2
'use strict' | ||
function deepPartialMatch (a, b) { | ||
var keys | ||
if (a === b) { | ||
@@ -16,6 +14,5 @@ return true | ||
keys = Object.keys(a) | ||
for (var i = 0; i < keys.length; i++) { | ||
if (!b[keys[i]] || !deepPartialMatch(a[keys[i]], b[keys[i]])) { | ||
// this is faster than Object.keys() | ||
for (var key in a) { | ||
if (!b[key] || !deepPartialMatch(a[key], b[key])) { | ||
return false | ||
@@ -22,0 +19,0 @@ } |
{ | ||
"name": "bloomrun", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "JS object pattern matching, powered by bloom filters", | ||
@@ -5,0 +5,0 @@ "main": "bloomrun.js", |
@@ -142,3 +142,3 @@ [![logo][logo-url]][npm-url] | ||
Copyright Matteo Collina 2015, Licensed under [MIT][]. | ||
Copyright Matteo Collina 2015-2016, Licensed under [MIT][]. | ||
@@ -145,0 +145,0 @@ [MIT]: ./LICENSE |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
42634
672