Closed lucasvallenet closed 1 year ago
+1 for adding an ES linter warning on save/commit
I completely deleted the array.js
util.
They are almost never used and a single ES6 line is possible as an alternative :
addToArray
new Set(array.push(value))
arrayContains
array.includes(value)
lastItemOfArray
array[array.length - 1]
removeFromArray
array.filter(item => item !== value)
toArray
Array.from(array)
findByKeyValue
array.find(item => item[key] === value)
cloneArray
[...array]
shuffleArray
array.sort(() => 0.5 - Math.random())
config.js
with constant valuesdebounce.js
to tickers.js
Outcome from meeting on 2022-10-05 Status: Approved by all.
Latest commit: |
a8314d0
|
Status: | ✅ Deploy successful! |
Preview URL: | https://48a15de3.locomotive-boilerplate.pages.dev |
Branch Preview URL: | https://feature-es6-updates.locomotive-boilerplate.pages.dev |
Clean-up utility functions:
I did not edit the
visibility.js
to avoid conflicts with PR#99