to create a key-value pair.
next to the collection or object to add key-value pairs under the collection or object, if you want.
to map the output of any previous action as an input in the code editor.
to add multiple key value pairs. Click Array Functions |
|---|
_.Compact—Removes falsey values from the given array. |
_.difference—Returns an array with values that are unique to the first array from the given number of arrays. |
_.flatten—Flattens an array a single level deep. |
_.flattenDeep—Flattens an entire array. |
_.intersection—Returns an array with values that are common in all the given arrays. |
_.first—Retrieves the first element of the given array. |
_.last—Retrieves the last element of the given array. |
_.uniq—Removes duplicate values from the given array. |
Object Functions |
|---|
_.pick—Returns an object with elements that match the specified object property. |
_.get—Returns the value of an element present at the specified path in an object. |
_.keys—Creates an array of the enumerable property names of an object. |
String Functions |
|---|
_.camelCase—Changes the string case to camelCase. |
_.capitalize—Changes the first character of the string to upper case and the remaining to lower case. |
_.kebabcase—Changes the string case to kebabCase. |
_.lowercase—Converts the specified string to lowercase. |
_.lowerfirst—Converts the first character of the string to lowercase. |
_.replace—Replaces the string that match the specified condition with a particular string. |
_.repeat—Repeats the given string a specified number of times. |
_.trim—Removes leading and trailing whitespaces and specified characters from the given string. |
_.escape—Converts the characters, &, <, >. ', and " in the given string to their corresponding HTML entities. |
_.unescape—Converts the HTML entities, &, <, >. ", and ' in the given string to their corresponding characters. |
Number Functions |
|---|
_.add—Adds two numbers. |
_.ceil—Rounds up the number to the specified precision. |
_.divide—Divides two numbers. |
_.floor—Rounds down the number to the specified precision. |
_.multiply—Multiplies two numbers. |
_.subtract—Subtracts two numbers. |