Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "ifonly", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "ifonly is function that checks if your object have only and only specific properties you passed.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,2 +20,5 @@ # ifonly | ||
obj = { a: 'a' }; | ||
console.log(ifonly(obj, ['a', 'b'])); // false because 'b' does not exist | ||
obj = { a: 'a', b: 'b', c: 'c' }; | ||
@@ -22,0 +25,0 @@ console.log(only(obj, ['a', 'b'], ['c'])); // true because 'c' property is ignored |
Sorry, the diff of this file is not supported yet
4491
32