17: Fim da série Entrevistas?
February 17, 2020#PerguntasDeEntrevistas FINAL
Está curtindo os conteúdos da Reativa? Quer que a gente te ajude a ser um dev melhor? Clique aqui.
#PerguntasDeEntrevistas FINAL
#PerguntasDeEntrevistas 16
#PerguntasDeEntrevistas 15
#PerguntasDeEntrevistas 14
#PerguntasDeEntrevistas 13
#PerguntasDeEntrevistas 12
#PerguntasDeEntrevistas 11
#PerguntasDeEntrevistas 10
#PerguntasDeEntrevistas 9
#PerguntasDeEntrevistas 8
#PerguntasDeEntrevistas 7
#PerguntasDeEntrevistas 6
#PerguntasDeEntrevistas 5
#PerguntasDeEntrevistas 4
#PerguntasDeEntrevistas 3
#PerguntasDeEntrevistas 2
#PerguntasDeEntrevistas 1
Resumo de 5 minutos: Fique por dentro de todas as features do ES6
Converts a comma-separated values (CSV) string to a 2D array. Use and to remove the first row (title row) if is . Use to create a string…
Converts a comma-separated values (CSV) string to a 2D array of objects. The first row of the string is used as the title row. Use and and…
Writes a JSON object to a file. Use , template literals and to write a object to a file. Acesse a Referência original
Converts an array of objects to a comma-separated values (CSV) string that contains only the specified. Use to combine all the names in…
Converts the values of RGB components to a color code. Convert given RGB parameters to hexadecimal string using bitwise left-shift operator…
Generates a UUID in a browser. Use API to generate a UUID, compliant with RFC4122 version 4. Acesse a Referência original
Joins all given URL segments together, then normalizes the resulting URL. Use to combine URL segments, then a series of calls with various…
Generates a UUID in Node.JS. Use API to generate a UUID, compliant with RFC4122 version 4. Acesse a Referência original
Retorna caso o valor todos os valores que você passe no array do primeiro argumento, condizem com a segunda verificação. Caso você não…
Check if all elements in an array are equal. Use to check if all the elements of the array are the same as the first one. Elements in the…
Returns if the provided predicate function returns for at least one element in a collection, otherwise. Use to test if any elements in…
Checks if two numbers are approximately equal to each other. Use to compare the absolute difference of the two values to . Omit the third…
Converts a 2D array to a comma-separated values (CSV) string. Use and to combine individual 1D arrays (rows) into strings. Use to combine…
Converts the given array elements into tags and appends them to the list of the given id. Use , , and an anonymous inner closure to create…
Creates a function that accepts up to arguments, ignoring any additional arguments. Call the provided function, , with up to arguments…
Decodes a string of data which has been encoded using base-64 encoding. Create a for the given string with base-64 encoding and use to…
Returns the average of two or more numbers. Use to add each value to an accumulator, initialized with a value of , divide by the of the…
Attempts to invoke a function with the provided arguments, returning either the result or the caught error object. Use a block to return…
Returns the average of an array, after mapping each element to a value using the provided function. Use to map each element to the value…
Splits values into two groups. If an element in is truthy, the corresponding element in the collection belongs to the first group…
Splits values into two groups according to a predicate function, which specifies which group an element in the input collection belongs to…
Creates a function that invokes with a given context, optionally adding any additional supplied parameters to the beginning of the…
Binds methods of an object to the object itself, overwriting the existing method. Use to return a that uses to apply the given context…
Returns if the bottom of the page is visible, otherwise. Use , and to determine if the bottom of the page is visible. Acesse a…
Creates a function that invokes the method at a given key of an object, optionally adding any additional supplied parameters to the…
Evaluates the binomial coefficient of two integers and . Use to check if any of the two values is . Check if is less than , greater than…
Creates a base-64 encoded ASCII string from a String object in which each character in the string is treated as a byte of binary data…
Returns the length of a string in bytes. Convert a given string to a Object and find its . Acesse a Referência original
Capitalizes the first letter of a string. Use array destructuring and to capitalize first letter, to get array of characters after first…
Given a key and a set of arguments, call them when given a context. Primarily useful in composition. Use a closure to call a stored key with…
Capitalizes the first letter of every word in a string. Use to match the first character of each word and to capitalize it. Acesse a…
Casts the provided value as an array if it’s not one. Use to determine if is an array and return it as-is or encapsulated in an array…
Chains asynchronous functions. Loop through an array of functions containing asynchronous events, calling when each asynchronous event has…
Given a function and a string, this curried function will then take an to inspect by calling the property and passing it to the predicate…
Chunks an array into smaller arrays of a specified size. Use to create a new array, that fits the number of chunks that will be produced…
Clones a regular expression. Use , and to clone the given regular expression. Acesse a Referência original
Clamps within the inclusive range specified by the boundary values and . If falls within the range, return . Otherwise, return the…
Returns a customized coalesce function that returns the first argument that returns from the provided argument validation function. Use to…
Returns the first non-null/undefined argument. Use to return the first non / argument. Acesse a Referência original
Changes a function that accepts an array into a variadic function. Given a function, return a closure that collects all inputs into an array…
Returns a string with whitespaces compacted. Use with a regular expression to replace all occurrences of 2 or more whitespace characters…
Removes falsy values from an array. Use to filter out falsy values (, , , , , and ). Acesse a Referência original
Performs right-to-left function composition. Use to perform right-to-left function composition. The last (rightmost) function can accept…
Performs left-to-right function composition. Use to perform left-to-right function composition. The first (leftmost) function can accept…
Accepts a converging function and a list of branching functions and returns a function that applies each branching function to the arguments…
Add special characters to text to print in color in the console (combined with ). Use template literals and special characters to add the…
Counts the occurrences of a value in an array. Use to increment a counter each time you encounter the specific value inside the array…
Groups the elements of an array based on the given function and returns the count of elements in each group. Use to map the values of an…
Copy a string to the clipboard. Only works as a result of user action (i.e. inside a event listener). ⚠️ NOTICE: The same functionality…
Creates a directory, if it does not exist. Use to check if the directory exists, to create it. Acesse a Referência original
Creates an element from a string (without appending it to the document). If the given string contains multiple elements, only the first one…
Creates a counter with the specified range, step and duration for the specified selector. Check if has the proper sign and change it…
Returns the current URL. Use to get current URL. Acesse a Referência original
Creates a pub/sub (publish–subscribe) event hub with , , and methods. Use to create an empty object that does not inherit properties from…
Gets the day of the year from a object. Use and to get the first day of the year as a object, subtract it from the provided and divide…
Curries a function. Use recursion. If the number of provided arguments () is sufficient, call the passed function . Otherwise, return a…
Creates a debounced function that delays invoking the provided function until at least milliseconds have elapsed since the last time it was…
Decapitalizes the first letter of a string. Use array destructuring and to decapitalize first letter, to get array of characters after…
Creates a deep clone of an object. Use recursion. Check if the passed object is and, if so, return . Use and an empty object () to create…
Deep flattens an array. Use recursion. Use with an empty array () and the spread operator () to flatten an array. Recursively flatten each…
Deep freezes an object. Calls recursively on all unfrozen properties of passed object that are object. Acesse a Referência original
Invokes the provided function after milliseconds. Use to delay execution of . Use the spread () operator to supply the function with an…
Returns the target value in a nested JSON object, based on the array. Compare the keys you want in the nested JSON object as an . Use to…
Deep maps an object’s keys. Creates an object with the same values as the provided object and keys generated by running the provided…
Converts an angle from degrees to radians. Use and the degree to radian formula to convert the angle from degrees to radians. Acesse a…
Detects whether the website is being opened in a mobile device or a desktop/laptop. Use a regular expression to test the property to figure…
Assigns default values for all properties in an object that are . Use to create a new empty object and copy the original one to maintain…
Returns the difference between two arrays, after applying the provided function to each array element of both. Create a by applying to…
Returns the difference between two arrays. Create a from , then use on to only keep values not contained in . Acesse a Referência…
Filters out all values from an array for which the comparator function does not return . Use and to find the appropriate values. Acesse a…
Converts a number to an array of digits. Convert the number to a string, using the spread operator () to build an array. Use and to…
Returns the target value in a nested JSON object, based on the given key. Use the operator to check if exists in . If found, return the…
Returns a new array with elements removed from the left. Use to remove the specified number of elements from the left. Acesse a Referência…
Returns the distance between two points. Use to calculate the Euclidean distance between two points. Acesse a Referência original
Returns a new array with elements removed from the right. Use to remove the specified number of elements from the right. Acesse a…
Removes elements from the end of an array until the passed function returns . Returns the remaining elements in the array. Loop through the…
Removes elements in an array until the passed function returns . Returns the remaining elements in the array. Loop through the array, using…
Returns if the element contains the element, otherwise. Check that is not the same element as , use to check if the element contains…
Computes the new ratings between two or more opponents using the Elo rating system. It takes an array of pre-ratings and returns an array…
Returns if the element specified is visible in the viewport, otherwise. Use and the values to determine if a given element is visible in…
Escapes a string for use in HTML. Use with a regexp that matches the characters that need to be escaped, using a callback function to…
Performs a deep comparison between two values to determine if they are equivalent. Check if the two values are identical, if they are both…
Escapes a string to use in a regular expression. Use to escape special characters. Acesse a Referência original
Returns every nth element in an array. Use to create a new array that contains every nth element of a given array. Acesse a Referência…
Calculates the factorial of a number. Use recursion. If is less than or equal to , return . Otherwise, return the product of and the…
Extends a 3-digit color code to a 6-digit color code. Use , and to join the mapped array for converting a 3-digit RGB notated hexadecimal…
Filters out the falsy values in an array. Use to get an array containing only truthy values. Acesse a Referência original
Generates an array, containing the Fibonacci sequence, up until the nth term. Create an empty array of the specific length, initializing the…
Filters out the non-unique values in an array. Use for an array containing only the unique values. Acesse a Referência original
Filters out the non-unique values in an array, based on a provided comparator function. Use and for an array containing only the unique…
Returns the first key that satisfies the provided testing function. Otherwise is returned. Use to get all the properties of the object…
Returns the last element for which the provided function returns a truthy value. Use to remove elements for which returns falsy values…
Returns the index of the last element for which the provided function returns a truthy value. Use to map each element to an array with its…
Returns the last key that satisfies the provided testing function. Otherwise is returned. Use to get all the properties of the object, to…
Flattens an array up to the specified depth. Use recursion, decrementing by 1 for each level of depth. Use and to merge elements or…
Flatten an object with the paths for keys. Use recursion. Use combined with to convert every leaf node to a flattened path node. If the…
Executes a provided function once for each array element, starting from the array’s last element. Use to clone the given array, to reverse…
Iterates over all own properties of an object, running a callback for each one. Use to get all the properties of the object, to run the…
Flip takes a function as an argument, then makes the first argument the last. Return a closure that takes variadic inputs, and splices the…
Iterates over all own properties of an object in reverse, running a callback for each one. Use to get all the properties of the object, to…
Returns the human readable format of the given number of milliseconds. Divide with the appropriate values to obtain the appropriate values…
Encode a set of form elements as an . Use the constructor to convert the HTML to , to convert to an array. Collect the object from the…
Logs the name of a function. Use and the property of the passed method to log the method’s name to the channel of the console. Acesse a…
Returns an object with the unique values of an array as keys and their frequencies as the values. Use to map unique values to an object’s…
Converts a string from camelcase. Use to remove underscores, hyphens, and spaces and convert words to camelcase. Omit the second argument…
Returns an array of function property names from own (and optionally inherited) enumerable properties of an object. Use to iterate over the…
Calculates the greatest common divisor between two or more numbers/arrays. The inner function uses recursion. Base case is when equals…
Initializes an array containing the numbers in the specified range where and are inclusive and the ratio between two terms is . Returns an…
Returns a string of the form from a object. Use and to get the part of a given object. Acesse a Referência original
Retrieve a set of properties indicated by the given selectors from an object. Use for each selector, to replace square brackets with dots…
Fetches all images from within an element and puts them into an array Use to fetch all elements inside the provided element, to map every…
Returns the scroll position of the current page. Use and if they are defined, otherwise and . You can omit to use a default value of…
Converts an integer to a suffixed string, adding or based on its value. Use the modulo operator () and conditional checks to transform an…
Returns the value of a CSS rule for the specified element. Use to get the value of the CSS rule for the specified element. Acesse a…
Returns the native type of a value. Returns lowercased constructor name of value, or if value is or . Acesse a Referência original
Returns an object containing the parameters of the current URL. Use with an appropriate regular expression to get all key-value pairs, to…
Groups the elements of an array based on the given function. Use to map the values of an array to a function or property name. Use to…
Calculates the Hamming distance between two values. Use XOR operator () to find the bit difference between the two numbers, convert to a…
Check if the current process’s arguments contain the specified flags. Use and to check if contains all the specified flags. Use a regular…
Returns if the element has the specified class, otherwise. Use to check if the element has the specified class. Acesse a Referência…
Returns if the target value exists in a JSON object, otherwise. Check if is non-empty and use to sequentially check its keys to internal…
Creates a hash for a value using the SHA-256 algorithm. Returns a promise. Use the SubtleCrypto API to create a hash for the given value…
Creates a hash for a value using the SHA-256 algorithm. Returns a promise. Use API to create a hash for the given value, to prevent…
Returns if two arrays contain the same elements regardless of order, otherwise. Use a loop over a created from the values of both arrays…
Returns the head of a list. Check if is truthy and has a property, use if possible to return the first element, otherwise return . Acesse…
Hides all the elements specified. Use to apply to each element specified. Acesse a Referência original
Makes a request to the passed URL. Use web api to make a request to the given . Handle the event, by calling the given the . Handle the…
Converts a color code to a or string if alpha value is provided. Use bitwise right-shift operator and mask bits with (and) operator to…
Redirects the page to HTTPS if its currently in HTTP. Also, pressing the back button doesn’t take it back to the HTTP page as its replaced…
Makes a request to the passed URL. Use web api to make a request to the given . Set the value of an request header with method. Handle…
Returns the number of times a function executed per second. is the unit for , the unit of frequency defined as one cycle per second. Use…
Returns if all the elements ιν are included in , otherwise. Use and to check if all elements of are included in . Acesse a Referência…
Checks if the given number falls within the given range. Use arithmetic comparison to check if the given number is in the specified range…
Returns if at least one element of values is included in arr , otherwise. Use and to check if at least one element of is included in…
Returns all indices of in an array. If never occurs, returns . Use to loop over elements and store indices for matching elements. Return…
Indents each line in the provided string. Use and a regular expression to add the character specified by times at the start of each line…
Returns all the elements of an array except the last one. Use to return all but the last element of the array. Acesse a Referência original
Initializes a 2D array of given width and height and value. Use to generate h rows where each is a new array of size w initialize with…
Initializes an array containing the numbers in the specified range where and are inclusive with their common difference . Use to create…
Initializes an array containing the numbers in the specified range (in reverse) where and are inclusive with their common difference . Use…
Create a n-dimensional array with given value. Use recursion. Use to generate rows where each is a new array initialized using . Acesse a…
Initializes and fills an array with the specified values. Use to create an array of the desired length, to fill it with the desired values…
Inserts an HTML string after the end of the specified element. Use with a position of to parse and insert it after the end of . Acesse a…
Inserts an HTML string before the start of the specified element. Use with a position of to parse and insert it before the start of…
Returns a list of elements that exist in both arrays. Create a from , then use on to only keep values contained in . Acesse a Referência…
Returns a list of elements that exist in both arrays, after applying the provided function to each array element of both. Create a by…
Returns a list of elements that exist in both arrays, using a provided comparator function. Use and in combination with the provided…
Inverts the key-value pairs of an object, without mutating it. The corresponding inverted value of each inverted key is an array of keys…
Checks if the provided value is of the specified type. Ensure the value is not or using , and compare the property on the value with to…
Returns if the given string is an absolute URL, otherwise. Use a regular expression to test if the string is an absolute URL. Acesse a…
Checks if a string is an anagram of another string (case-insensitive, ignores spaces, punctuation and special characters). Use , with an…
Check if a date is after another date. Use the greater than operator () to check if the first date comes after the second one. Acesse a…
Checks if the provided argument is array-like (i.e. is iterable). Check if the provided argument is not and that its property is a…
Checks if the given argument is a native boolean element. Use to check if a value is classified as a boolean primitive. Acesse a Referência…
Determines if the current runtime environment is a browser so that front-end modules can run on the server (Node) without throwing errors…
Check if a date is before another date. Use the less than operator () to check if the first date comes before the second one. Acesse a…
Returns if the browser tab of the page is focused, otherwise. Use the property, introduced by the Page Visibility API to check if the…
Returns if the elements of the first array are contained in the second one regardless of order, otherwise. Use a loop over a created…
Checks if the first numeric argument is divisible by the second one. Use the modulo operator () to check if the remainder is equal to…
Checks if the given argument is a duplex (readable and writable) stream. Check if the value is different from , use to check if a value is…
Returns if the given number is even, otherwise. Checks whether a number is odd or even using the modulo () operator. Returns if the…
Returns true if the a value is an empty object, collection, has no enumerable properties or is any type that is not considered a collection…
Checks if the given argument is a function. Use to check if a value is classified as a function primitive. Acesse a Referência original
Checks if the given value is equal to negative zero (). Checks whether a passed value is equal to and if divided by the value equals…
Checks if a string is lower case. Convert the given string to lower case, using and compare it to the original. Acesse a Referência…
Returns if the specified value is or , otherwise. Use the strict equality operator to check if the value and of are equal to or…
Returns if the specified value is , otherwise. Use the strict equality operator to check if the value and of are equal to . Acesse a…
Returns a boolean determining if the passed value is an object or not. Uses the constructor to create an object wrapper for the given…
Checks if a value is object-like. Check if the provided value is not and its is equal to . Acesse a Referência original
Checks if the given argument is a number. Use to check if a value is classified as a number primitive. To safeguard against , check if…
Returns if the given number is odd, otherwise. Checks whether a number is odd or even using the modulo () operator. Returns if the number…
Checks if the provided value is an object created by the Object constructor. Check if the provided value is truthy, use to check if it is…
Returns if the given number is a power of , otherwise. Use the bitwise binary AND operator () to determine if 2. Additionally, check that…
Checks if the provided integer is a prime number. Check numbers from to the square root of the given number. Return if any of them divides…
Returns a boolean determining if the passed value is primitive or not. Create an object from and compare it with to determine if the…
Returns if an object looks like a , otherwise. Check if the object is not , its matches either or and if it has a property, which is…
Checks if the given argument is a readable stream. Check if the value is different from , use to check if the value is of type and the…
Returns if the array is sorted in ascending order, if it is sorted in descending order or if it is not sorted. Calculate the ordering…
Checks if the given argument is a stream. Check if the value is different from , use to check if the value is of type and the property is…
Check if a date is the same as another date. Use and strict equality checking () to check if the first date is the same as the second one…
Checks if the given argument is a string. Only works for string primitives. Use to check if a value is classified as a string primitive…
Checks if a string is upper case. Convert the given string to upper case, using and compare it to the original. Acesse a Referência…
Checks if the given argument is a symbol. Use to check if a value is classified as a symbol primitive. Acesse a Referência original
Checks if the current environment is Travis CI. Checks if the current environment has the and environment variables (reference). Acesse a…
Results in a boolean representation of a specific date. Pass the specific date object firstly. Use to check weekday by using a modulo…
Returns if the specified value is , otherwise. Use the strict equality operator to check if the value and of are equal to . Acesse a…
Checks if the provided string is a valid JSON. Use and a block to check if the provided string is a valid JSON. Acesse a Referência…
Results in a boolean representation of a specific date. Pass the specific date object firstly. Use to check weekend based on the day being…
Checks if the given argument is a writable stream. Check if the value is different from , use to check if the value is of type and the…
Joins all elements of an array into a string and returns this string. Uses a separator and an end separator. Use to combine elements into a…
Returns the last element in an array. Check if is truthy and has a property, use to compute the index of the last element of the given…
Defers invoking a function until the current call stack has cleared. Use with a timeout of 1ms to add a new event to the browser event…
Returns the least common multiple of two or more numbers. Use the greatest common divisor (GCD) formula and the fact that to determine the…
Implementation of the Luhn Algorithm used to validate a variety of identification numbers, such as credit card numbers, IMEI numbers…
Creates a new object from the specified object, where all the keys are in lowercase. Use and to create a new object from the specified…
Creates an object with keys generated by running the provided function for each key and the same values as the provided object. Use to…
Maps the values of an array to an object using a function, where the key-value pairs consist of the stringified value as the key and the…
Maps a number from one range to another range. Returns mapped between - from -. Acesse a Referência original
Creates a new string with the results of calling a provided function on every character in the calling string. Use and to call the…
Replaces all but the last of characters with the specified mask character. Use to grab the portion of the characters that will remain…
Returns the difference (in days) between two dates. Calculate the difference (in days) between two objects. Acesse a Referência original
Creates an object with the same keys as the provided object and values generated by running the provided function for each value. Use to…
Compares two objects to determine if the first one contains equivalent property values to the second one, based on a provided function. Use…
Returns the maximum value of an array, after mapping each element to a value using the provided function. Use to map each element to the…
Compares two objects to determine if the first one contains equivalent property values to the second one. Use to get all the keys of the…
Returns the maximum of the given dates. Use the ES6 spread syntax with to find the maximum date value, to convert it to a object. Acesse…
Returns the maximum elements from the provided array. If is greater than or equal to the provided array’s length, then return the original…
Returns the memoized (cached) function. Create an empty cache by instantiating a new object. Return a function which takes a single…
Creates a new object from the combination of two or more objects. Use combined with to iterate over all objects and keys. Use and to…
Returns the median of an array of numbers. Find the middle of the array, use to sort the values. Return the number at the midpoint if is…
Calculates the midpoint between two pairs of (x,y) points. Destructure the array to get , , and , calculate the midpoint for each dimension…
Returns the minimum of the given dates. Use the ES6 spread syntax to find the minimum date value, to convert it to a object. Acesse a…
Returns the most frequent element in an array. Use to map unique values to an object’s keys, adding to existing keys every time the same…
Returns the minimum value of an array, after mapping each element to a value using the provided function. Use to map each element to the…
Returns the minimum elements from the provided array. If is greater than or equal to the provided array’s length, then return the original…
Returns the index of the function in an array of functions which executed the fastest. Use to generate an array where each value is the…
Negates a predicate function. Take a predicate function and apply the not operator () to it with its arguments. Acesse a Referência original
Converts a to an array. Use spread operator inside new array to convert a to an array. Acesse a Referência original
Given a flat array of objects linked to one another, it will nest them recursively. Useful for nesting comments, such as the ones on reddit…
Returns if the provided predicate function returns for all elements in a collection, otherwise. Use to test if any elements in the…
Creates a function that gets the argument at index . If is negative, the nth argument from the end is returned. Use to get the desired…
Returns the nth element of an array. Use to get an array containing the nth element at the first place. If the index is out of bounds…
Creates an object from the given key-value pairs. Use to create and combine key-value pairs. Acesse a Referência original
Creates an array of key-value pair arrays from an object. Use and to iterate over the object’s keys and produce an array with key-value…
Returns a new MutationObserver and runs the provided callback for each mutation on the specified element. Use a to observe mutations on the…
Returns a query string generated from the key-value pairs of the given object. Use on to create the query string. Determine the to be…
Removes an event listener from an element. Use to remove an event listener from an element. Omit the fourth argument to use or specify…
Moves the specified amount of elements to the end of the array. Use twice to get the elements after the specified index and the elements…
Omits the key-value pairs corresponding to the given keys from an object. Use , and to remove the provided keys. Use to convert the…
Adds an event listener to an element with the ability to use event delegation. Use to add an event listener to an element. If there is a…
Creates an object composed of the properties the given function returns falsy for. The function is invoked with two arguments: (value, key…
Run the callback whenever the user input type changes ( or ). Useful for enabling/disabling code depending on the input device. This process…
Ensures a function is called only once. Utilizing a closure, use a flag, , and set it to once the function is called for the first time…
Returns a sorted array of objects ordered by properties and orders. Uses , on the array with a default value of , use array destructuring…
Creates a function that invokes each provided function with the arguments it receives and returns the results. Use and to apply each…
Creates a function that invokes the provided function with its arguments transformed. Use to apply to in combination with the spread…
Pads a string on both sides with the specified character, if it’s shorter than the specified length. Use and to pad both sides of the…
Returns if the given string is a palindrome, otherwise. Convert the string to and use to remove non-alphanumeric characters from it…
Parse an HTTP Cookie header string and return an object of all cookie name-value pairs. Use to separate key-value pairs from each other…
Creates a function that invokes with appended to the arguments it receives. Use the spread operator () to append to the list of arguments…
Creates a function that invokes with prepended to the arguments it receives. Use the spread operator () to prepend to the list of…
Groups the elements into two arrays, depending on the provided function’s truthiness for each element. Use to create an array of two arrays…
Uses the percentile formula to calculate how many numbers in the given array are less or equal to the given value. Use to calculate how…
Generates all permutations of an array’s elements (contains duplicates). ⚠️ WARNING: This function’s execution time increases exponentially…
Picks the key-value pairs corresponding to the given keys from an object. Use to convert the filtered/picked keys back to an object with…
Creates an object composed of the properties the given function returns truthy for. The function is invoked with two arguments: (value, key…
Performs left-to-right function composition. Use with the spread operator () to perform left-to-right function composition. The first…
Performs left-to-right function composition for asynchronous functions. Use with the spread operator () to perform left-to-right function…
Returns the singular or plural form of the word based on the input number. If the first argument is an , it will use a closure by returning…
Returns the powerset of a given array of numbers. Use combined with to iterate over elements and combine into an array containing all…
Returns the prefixed version (if necessary) of a CSS property that the browser supports. Use on an array of vendor prefix strings to test…
Converts an asynchronous function to return a promise. In Node 8+, you can use Use currying to return a function returning a that calls…
Generates primes up to a given number, using the Sieve of Eratosthenes. Generate an array from to the given number. Use to filter out the…
Converts a number in bytes to a human-readable string. Use an array dictionary of units to be accessed based on the exponent. Use to…
Mutates the original array to filter out the values at the specified indexes. Use and to pull out the values that are not needed. Use to…
Mutates the original array to filter out the values specified. Returns the removed elements. Use and to pull out the values that are not…
Mutates the original array to filter out the values specified. Use and to pull out the values that are not needed. Use to mutate the…
Mutates the original array to filter out the values specified, based on a given iterator function. Check if the last argument provided in a…
Converts an angle from radians to degrees. Use and the radian to degree formula to convert the angle from radians to degrees. Acesse a…
Generates a random hexadecimal color code. Use to generate a random 24-bit(6x4bits) hexadecimal number. Use bit shifting and then convert…
Returns an array of n random integers in the specified range. Use to create an empty array of the specific length, to generate a random…
Returns a random number in the specified range. Use to generate a random value, map it to the desired range using multiplication. Acesse a…
Returns a random integer in the specified range. Use to generate a random number and map it to the desired range, using to make it an…
Returns an array of lines from the specified file. Use function in node package to create a from a file. convert buffer to string using…
Creates a function that invokes the provided function with its arguments arranged according to the specified indexes. Use to reorder…
Invokes the provided callback on each animation frame. Use recursion. Provided that is , continue invoking which invokes the provided…
Redirects to a specified URL. Use or to redirect to . Pass a second argument to simulate a link click ( - default) or an HTTP redirect…
Applies a function against an accumulator and each element in the array (from left to right), returning an array of successively reduced…
Returns the minimum/maximum value of an array, after applying the provided function to set comparing rule. Use in combination with the…
Filter an array of objects based on a condition while also filtering out unspecified keys. Use to filter the array based on the predicate…
Removes elements from an array for which the given function returns . Use to find array elements that return truthy values and to remove…
Filters an array’s values based on a predicate function, returning only values for which the predicate function returns . Use in…
Removes non-printable ASCII characters. Use a regular expression to remove non-printable ASCII characters. Acesse a Referência original
Replaces the names of multiple object keys with the values provided. Use in combination with and the spread operator () to get the object…
Rounds a number to a specified amount of digits. Use and template literals to round the number to the specified number of digits. Omit the…
Reverses a string. Use the spread operator () and to reverse the order of the characters in the string. Combine characters to get a string…
Runs a function in a separate thread by using a Web Worker, allowing long running functions to not block the UI. Create a new using a…
Runs an array of promises in series. Use to create a promise chain, where each promise returns the next promise when resolved. Acesse a…
Returns a random element from an array. Use to generate a random number, multiply it by and round it off to the nearest whole number using…
Gets random elements at unique keys from up to the size of . Shuffle the array using the Fisher-Yates algorithm. Use to get the first…
Smooth-scrolls to the top of the page. Get distance from top using or . Scroll by a fraction of the distance from the top. Use to animate…
Hashes the input string into a whole number. Use and to create a hash of the input string, utilizing bit shifting. Acesse a Referência…
Serialize a cookie name-value pair into a Set-Cookie header string. Use template literals and to create the appropriate string. Acesse a…
Encode a set of form elements as a query string. Use the constructor to convert the HTML to , to convert to an array, passing a map…
Sets the value of a CSS rule for the specified element. Use to set the value of the CSS rule for the specified element to . Acesse a…
Creates a shallow clone of an object. Use and an empty object () to create a shallow clone of the original. Acesse a Referência original
Has the same functionality as , but returning a new array instead of mutating the original array. Use and to get a new array with the new…
Shows all the elements specified. Use the spread operator () and to clear the property for each element specified. Acesse a Referência…
Randomizes the order of the values of an array, returning a new array. Use the Fisher-Yates algorithm to reorder the elements of the array…
Returns an array of elements that appear in both arrays. Use to remove values that are not part of , determined using . Acesse a Referência…
Gets the size of an array, object or string. Get type of (, or ). Use property for arrays. Use or value if available or number of keys…
Delays the execution of an asynchronous function. Delay executing part of an function, by putting it to sleep, returning a . Acesse a…
Smoothly scrolls the element on which it’s called into the visible area of the browser window. Use method to scroll the element. Pass to…
Alphabetically sorts the characters in a string. Use the spread operator (), and to sort the characters in , recombine using . Acesse a…
Returns the lowest index at which value should be inserted into array in order to maintain its sort order. Check if the array is sorted in…
Returns the lowest index at which value should be inserted into array in order to maintain its sort order, based on a provided iterator…
Returns the highest index at which value should be inserted into array in order to maintain its sort order. Check if the array is sorted in…
Returns the highest index at which value should be inserted into array in order to maintain its sort order, based on a provided iterator…
Splits a multiline string into an array of lines. Use and a regular expression to match line breaks and create an array. Acesse a…
Takes a variadic function and returns a closure that accepts an array of arguments to map to the inputs of the function. Use closures and…
Performs stable sorting of an array, preserving the initial indexes of items when their values are the same. Does not mutate the original…
Returns the standard deviation of an array of numbers. Use to calculate the mean, variance and the sum of the variance of the values, the…
Removes HTML/XML tags from string. Use a regular expression to remove HTML/XML tags from a string. Acesse a Referência original
Generates all permutations of a string (contains duplicates). ⚠️ WARNING: This function’s execution time increases exponentially with each…
Returns the sum of two or more numbers/arrays. Use to add each value to an accumulator, initialized with a value of . Acesse a Referência…
Returns the sum of the powers of all the numbers from to (both inclusive). Use to create an array of all the numbers in the target range…
Returns the sum of an array, after mapping each element to a value using the provided function. Use to map each element to the value…
Returns the symmetric difference between two arrays, without filtering out duplicate values. Create a from each array, then use on each of…
Returns the symmetric difference between two arrays, after applying the provided function to each array element of both. Create a by…
Returns the symmetric difference between two arrays, using a provided function as a comparator. Use and to find the appropriate values…
Returns all elements in an array except for the first one. Return if the array’s is more than , otherwise, return the whole array. Acesse…
Returns an array with n elements removed from the beginning. Use to create a slice of the array with elements taken from the beginning…
Removes elements from the end of an array until the passed function returns . Returns the removed elements. Loop through the array, using a…
Returns an array with n elements removed from the end. Use to create a slice of the array with elements taken from the end. Acesse a…
Removes elements in an array until the passed function returns . Returns the removed elements. Loop through the array, using a loop over…
Creates a throttled function that only invokes the provided function at most once per every milliseconds Use and to throttle the given…
Iterates over a callback times Use to call times or until it returns . Omit the last argument, , to use an object (or the global object…
Measures the time taken by a function to execute. Use and to measure the difference between the start and end times to determine how long…
Converts a string to camelcase. Break the string into words and combine them capitalizing the first letter of each word, using a regexp…
Takes any number of iterable objects or objects with a property and returns the longest one. If multiple objects have the same length, the…
Take a number and return specified currency formatting. Use to enable country / currency sensitive formatting. Acesse a Referência original
Adds an ordinal suffix to a number. Use the modulo operator () to find values of single and tens digits. Find which ordinal pattern digits…
Reduces a given Array-like into a value hash (keyed data store). Given an Iterable or Array-like structure, call on the provided object to…
Converts a string to kebab case. Break the string into words and combine them adding as a separator, using a regexp. Acesse a Referência…
Converts a value to a safe integer. Use and to find the closest safe value. Use to convert to an integer. Acesse a Referência original
Converts a string to snake case. Break the string into words and combine them adding as a separator, using a regexp. Acesse a Referência…
Toggle a class for an element. Use to toggle the specified class for the element. Acesse a Referência original
Converts a string to title case. Break the string into words, using a regexp, and combine them capitalizing the first letter of each word…
Results in a string representation of tomorrow’s date. Use to get the current date, increment by one using and set the value to the result…
Applies a function against an accumulator and each key in the object (from left to right). Use to iterate over each key in the object, to…
Truncates a string up to a specified length. Determine if the string’s is greater than . Return the string truncated to the desired length…
Triggers a specific event on a given element, optionally passing custom data. Use to create an event from the specified and details. Use…
Checks if the predicate (second argument) is truthy on all elements of a collection (first argument). Use to check if each passed object…
Creates a function that accepts up to one argument, ignoring any additional arguments. Call the provided function, , with just the first…
Uncurries a function up to depth . Return a variadic function. Use on the provided arguments to call each subsequent curry level of the…
Unescapes escaped HTML characters. Use with a regex that matches the characters that need to be unescaped, using a callback function to…
Builds an array, using an iterator function and an initial seed value. Use a loop and to call the function repeatedly until it returns…
Unflatten an object with the paths for keys. Use combined with to convert flattened path node to a leaf node. If the value of a key…
Returns every element that exists in any of the two arrays once. Create a with all values of and and convert to an array. Acesse a…
Returns every element that exists in any of the two arrays once, after applying the provided function to each array element of both. Create…
Returns all unique values of an array. Use ES6 and the operator to discard all duplicated values. Acesse a Referência original
Returns every element that exists in any of the two arrays once, using a provided comparator function. Create a with all values of and…
Returns all unique values of an array, based on a provided comparator function. Use and for an array containing only the first unique…
Returns the unique symmetric difference between two arrays, not containing duplicate values from either array. Use and on each array to…
Returns all unique values of an array, based on a provided comparator function, starting from the right. Use and for an array containing…
Converts a tilde path to an absolute path. Use with a regular expression and to replace the in the start of the path with the home…
Creates an array of elements, ungrouping the elements in an array produced by zip and applying the provided function. Use to get the…
Returns if the given value is a number, otherwise. Use in combination with to check if the argument is a number. Use to check if the…
Creates an array of arrays, ungrouping the elements in an array produced by zip. Use to get the longest subarray in the array, to make…
Returns a random element from an array, using the provided as the probabilities for each element. Use to create an array of partial sums…
Returns the distance between two vectors. Use , and to calculate the Euclidean distance between two vectors. Acesse a Referência original
Tests a value, , against a predicate function. If , return . Else, return . Return a function expecting a single value, , that returns the…
Converts a given string into an array of words. Use with a supplied pattern (defaults to non-alpha as a regexp) to convert to an array of…
Filters out the elements of an array, that have one of the specified values. Use to create an array excluding(using ) all given values…
Creates a new array out of the two supplied by creating each possible pair from the arrays. Use , and to produce every possible pair from…
Results in a string representation of yesterday’s date. Use to get the current date, decrement by one using and set the value to the…
Creates an array of elements, grouped based on the position in the original arrays. Use to get the longest array in the arguments. Creates…
Returns if the string is / or if the string is /. Use to check if the string evaluates to or . Omit the second argument, to set the…
Given an array of valid property identifiers and an array of values, return an object associating the properties to the values. Since an…
Creates an array of elements, grouped based on the position in the original arrays and using function as the last value to specify how…
Use to convert a float-point arithmetic to the Decimal mark form. It makes a comma separated string from a number. Acesse a Referência…