Travis build: 911 [cron]
This commit is contained in:
@ -294,6 +294,13 @@
|
||||
],
|
||||
"description": "Removes falsey values from an array.\n\nUse `Array.prototype.filter()` to filter out falsey values (`false`, `null`, `0`, `\"\"`, `undefined`, and `NaN`)"
|
||||
},
|
||||
"compactWhitespace": {
|
||||
"prefix": "30s_compactWhitespace",
|
||||
"body": [
|
||||
"const compactWhitespace = str => str.replace(/\\s{2,}/g, ' ');"
|
||||
],
|
||||
"description": "Returns a string with whitespaces compacted.\n\nUse `String.prototype.replace()` with a regular expression to replace all occurences of 2 or more whitespace characters with a single space"
|
||||
},
|
||||
"compose": {
|
||||
"prefix": "30s_compose",
|
||||
"body": [
|
||||
|
||||
Reference in New Issue
Block a user