it('should execute with a synchronous iterator', () => { Aigle.mixin({ sortedUniqBy: _.sortedUniqBy }, { override: true }); return Aigle.delay(10, [1.1, 1.4, 2.3, 2.5, 2.7]) .sortedUniqBy(Math.round) .then((array) => assert.deepStrictEqual(array, [1.1, 2.3, 2.5])); });
sortedUniqBy<T>( array?: ?Array<T>, iteratee?: ?(value: T) => mixed )
it('should execute with a asynchronous iterator', () => { Aigle.mixin({ sortedUniqBy: _.sortedUniqBy }, { override: true }); return Aigle.delay(10, [1.1, 1.4, 2.3, 2.5, 2.7]) .sortedUniqBy((n) => Aigle.delay(DELAY, Math.round(n))) .then((array) => assert.deepStrictEqual(array, [1.1, 2.3, 2.5])); });
sortedUniqBy<T>(array?: ?Array<T>, iteratee?: ?(value: T) => mixed)
sortedUniqBy<T>(array?: ?Array<T>, iteratee?: ?(value: T) => mixed)
sortedUniqBy<T>(array?: ?Array<T>, iteratee?: ?(value: T) => mixed)
sortedUniqBy<T>(array?: ?Array<T>, iteratee?: ?(value: T) => mixed)
sortedUniqBy<T>(array?: ?Array<T>, iteratee?: ?(value: T) => mixed)
sortedUniqBy<T>(array?: ?Array<T>, iteratee?: ?(value: T) => mixed)