update tag database and remove distinctValuesOfArray

This commit is contained in:
Stefan Feješ
2018-01-17 18:07:48 +01:00
parent b1f8a708dc
commit 3c0a31eb7a
3 changed files with 1 additions and 16 deletions

View File

@ -33,7 +33,6 @@ difference:array,math
differenceWith:array,function
digitize:math,array
distance:math
distinctValuesOfArray:array
dropElements:array,function
dropRight:array
elementIsVisibleInViewport:browser
@ -203,6 +202,7 @@ truncateString:string
truthCheckCollection:object,logic,array
unescapeHTML:string,browser
union:array,math
uniqueElements:array
untildify:node,string
URLJoin:string,utility,regexp
UUIDGeneratorBrowser:browser,utility,random

View File

@ -1 +0,0 @@
module.exports = distinctValuesOfArray = arr => [...new Set(arr)];

View File

@ -1,14 +0,0 @@
const test = require('tape');
const distinctValuesOfArray = require('./distinctValuesOfArray.js');
test('Testing distinctValuesOfArray', (t) => {
//For more information on all the methods supported by tape
//Please go to https://github.com/substack/tape
t.true(typeof distinctValuesOfArray === 'function', 'distinctValuesOfArray is a Function');
t.deepEqual(distinctValuesOfArray([1, 2, 2, 3, 4, 4, 5]), [1,2,3,4,5], "Returns all the distinct values of an array");
//t.deepEqual(distinctValuesOfArray(args..), 'Expected');
//t.equal(distinctValuesOfArray(args..), 'Expected');
//t.false(distinctValuesOfArray(args..), 'Expected');
//t.throws(distinctValuesOfArray(args..), 'Expected');
t.end();
});