Tips for Dealing with Data
Cheat sheet for Makers πββοΈ

π’ Dealing with numbers and decimals
Getting a random number [1β100]
Changing the number of digits to appear after the decimal point
π€ Dealing with strings
Converting multiline text to an array of lines
Getting md5 hash
Generating a random string (password)
π Dealing with arrays
Converting a string (Directual array or arrayLink) into a JS-Array value
Saving a JS array to a Directual array
Counting elements of an array
Getting an element from an array with number N
Getting a random element from an array
Adding an element into an array while preventing duplicates

Removing an element from an array
Applying an array iterator map()
map()Applying an array iterator reduce() for calculating average
reduce() for calculating averageArrays intersection (using lodash)
lodash)π
Dealing with dates
Getting current time
Converting date format
Converting into timestamp
Parsing date
Incrementing date
Creating a unique object for each day

Calculating the number of days between two dates
Applying MomentJS
π₯· Regular expressions
Replace
Extract
Last updated
Was this helpful?