MCPcopy Create free account
hub / github.com/javascriptdata/danfojs / unique

Method unique

src/danfojs-base/shared/utils.ts:360–363  ·  view source on GitHub ↗

* Returns the unique values in an 1D array * @param arr The array

(arr: ArrayType1D)

Source from the content-addressed store, hash-verified

358 * @param arr The array
359 */
360 unique(arr: ArrayType1D): ArrayType1D {
361 const uniqueArr = new Set(arr);
362 return Array.from(uniqueArr);
363 }
364
365 /**
366 * Checks if array is 1D

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected