ifonly
ifonly is function that checks if your object have only and only specific properties you passed.
It works in both node and client-side applications.
Example
var obj; obj = a: 'a';console; // true because only 'a' property is present obj = a: 'a' b: 'b' c: 'c' ;console; // false because 'c' property is present obj = a: 'a' ;console; // false because 'b' does not exist obj = a: 'a' b: 'b' c: 'c' ;console; // true because 'c' property is ignored obj = a: '' b: 'b' c: '' ;console; // true because 'a' and 'c' properties are empty obj = a: b: 'b' c: {} ;console; // true because 'a' and 'c' properties are empty