typs.js
// switch the validation to an array of key/values objects
switch the validation to an array of key/values objects
switch the validation to an array of key / values objects
andEachEntry () {
		return this.map((obj) => {
			if (typs(obj).object().notNil().doesntCheck() && typs(obj).array().doesntCheck()) {
				throw new Error('typs().andEachEntry() can\'t read entries from a non-object');
			}
			return Object.keys(obj).map((key) => {
				return {key, value: obj[key]};
			});
		}).andEach();
	}
andEachEntry ( ) { return this . map ( ( obj ) => { if ( typs ( obj ) . object ( ) . notNil ( ) . doesntCheck ( ) && typs ( obj ) . array ( ) . doesntCheck ( ) ) { throw new Error ( 'typs().andEachEntry() can\'t read entries from a non-object' ) ; } return Object . keys ( obj ) . map ( ( key ) => { return { key , value : obj [ key ] } ; } ) ; } ) . andEach ( ) ; }
switch the validation to an array of key/values objects
switch the validation to an array of key / values objects