add hw2
This commit is contained in:
		
							
								
								
									
										24
									
								
								node_modules/ramda/es/uniq.js
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								node_modules/ramda/es/uniq.js
									
									
									
										generated
									
									
										vendored
									
									
										Executable file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| import identity from "./identity.js"; | ||||
| import uniqBy from "./uniqBy.js"; | ||||
| /** | ||||
|  * Returns a new list containing only one copy of each element in the original | ||||
|  * list. [`R.equals`](#equals) is used to determine equality. | ||||
|  * | ||||
|  * @func | ||||
|  * @memberOf R | ||||
|  * @since v0.1.0 | ||||
|  * @category List | ||||
|  * @sig [a] -> [a] | ||||
|  * @param {Array} list The array to consider. | ||||
|  * @return {Array} The list of unique items. | ||||
|  * @example | ||||
|  * | ||||
|  *      R.uniq([1, 1, 2, 1]); //=> [1, 2] | ||||
|  *      R.uniq([1, '1']);     //=> [1, '1'] | ||||
|  *      R.uniq([[42], [42]]); //=> [[42]] | ||||
|  */ | ||||
|  | ||||
| var uniq = | ||||
| /*#__PURE__*/ | ||||
| uniqBy(identity); | ||||
| export default uniq; | ||||
		Reference in New Issue
	
	Block a user
	 nik
					nik