Contains useful functions to solve easy day-to-day problems
You can import any function using ES5 syntax into your script: import { add, subtract } from './math_functions.js';
<script type="module" src="main.js"></script>Use this function to detect the lonely integer from an array.
Use this function to lookup information from a Javascript object. First argumennt is object property, second arg is value
Use this function to generate a range of numbers. This function takes an array as argument
Use this function to flip any number to a 32-bit int. This function takes a number string
Use this function to find the length of the longest word in a string. Function takes a string as argument
Use this function to capitalize every word in a string. This function takes a string as argument.
Use this function to compare two strings, find if second string in the array match to first string in the array. This function takes an array containing two element(strings)
A function that splits an array (first argument) into groups the length of size (second argument) and returns them as a two-dimensional array. Function takes an array as first argument and a number as second argument.