typs.js
// checks if obj has all keys defined
checks if obj has all keys defined
checks if obj has all keys defined
hasKeys (keys) {
		if (typs(keys).array().doesntCheck()) {
			throw new Error('typs().hasKeys() expects an array as its first parameter');
		}
		return this.keyable().add((obj) => {
			return keys.every((key) => key in obj);
		});
	}
hasKeys ( keys ) { if ( typs ( keys ) . array ( ) . doesntCheck ( ) ) { throw new Error ( 'typs().hasKeys() expects an array as its first parameter' ) ; } return this . keyable ( ) . add ( ( obj ) => { return keys . every ( ( key ) => key in obj ) ; } ) ; }
checks if obj has all keys defined
checks if obj has all keys defined