@jdeighan/coffee-utils 4.1.4 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jdeighan/coffee-utils",
3
3
  "type": "module",
4
- "version": "4.1.4",
4
+ "version": "4.1.5",
5
5
  "description": "A set of utility functions for CoffeeScript",
6
6
  "main": "coffee_utils.js",
7
7
  "exports": {
@@ -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
 
@@ -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) {