typs.js
// checks if a collection has any duplicate entries
checks if a collection has any duplicate entries
checks if a collection has any duplicate entries
unique () {
		return this.hasLength().add((obj) => {
			return asArray(obj).every((e, i, arr) => i === arr.indexOf(e));
		});
	}
unique ( ) { return this . hasLength ( ) . add ( ( obj ) => { return asArray ( obj ) . every ( ( e , i , arr ) => i === arr . indexOf ( e ) ) ; } ) ; }
checks if a collection has any duplicate entries
checks if a collection has any duplicate entries