@jdeighan/coffee-utils 4.1.4 → 4.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/coffee_utils.coffee +6 -0
- package/src/coffee_utils.js +5 -0
package/package.json
CHANGED
package/src/coffee_utils.coffee
CHANGED
|
@@ -202,6 +202,12 @@ export isInteger = (x) ->
|
|
|
202
202
|
else
|
|
203
203
|
return false
|
|
204
204
|
|
|
205
|
+
# ---------------------------------------------------------------------------
|
|
206
|
+
|
|
207
|
+
export uniq = (lItems) ->
|
|
208
|
+
|
|
209
|
+
return [...new Set(lItems)]
|
|
210
|
+
|
|
205
211
|
# ---------------------------------------------------------------------------
|
|
206
212
|
# warn - issue a warning
|
|
207
213
|
|
package/src/coffee_utils.js
CHANGED
|
@@ -210,6 +210,11 @@ export var isInteger = function(x) {
|
|
|
210
210
|
}
|
|
211
211
|
};
|
|
212
212
|
|
|
213
|
+
// ---------------------------------------------------------------------------
|
|
214
|
+
export var uniq = function(lItems) {
|
|
215
|
+
return [...new Set(lItems)];
|
|
216
|
+
};
|
|
217
|
+
|
|
213
218
|
// ---------------------------------------------------------------------------
|
|
214
219
|
// warn - issue a warning
|
|
215
220
|
export var warn = function(message) {
|