@mintlab/kitchen-sink
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -39,2 +39,10 @@ const expose = require('./expose'); | ||
function toggleItem(array, item) { | ||
if(array.includes(item)) { | ||
return array.filter(thisId => thisId !== item); | ||
} | ||
return [...array, item]; | ||
} | ||
module.exports = expose({ | ||
@@ -44,2 +52,3 @@ asArray, | ||
isPopulatedArray, | ||
toggleItem, | ||
}); |
@@ -7,2 +7,3 @@ // Modules exposed in the entry file are for DLL pre-builds. | ||
isPopulatedArray, | ||
toggleItem, | ||
} = require('./array'); | ||
@@ -60,3 +61,4 @@ const dictionary = require('./dictionary'); | ||
removeFromArray, | ||
toggleItem, | ||
unique, | ||
}); |
{ | ||
"name": "@mintlab/kitchen-sink", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"license": "EUPL-1.1", | ||
@@ -5,0 +5,0 @@ "description": "Mintlab utility functions.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28413
483