Applies a function to the value at the given index of an array, returning a new copy of the array with the element at the given index replaced with the result of the function application.
adjust(1, (value) => value.toUpperCase(), ['a', 'b', 'c', 'd']); //=> ['a', 'B', 'c', 'd']
adjust(-1, (value) => value.toUpperCase(), ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c', 'D']
Returns the first argument if it is falsy, otherwise the second argument. Acts as the boolean and statement if both inputs are Booleans.
and(true,true) // true
and(true,false) // false
and(false,true) // false
and(false,false) // false
Adds two values.
example