JS para impacientes

Está curtindo os conteúdos da Reativa? Quer que a gente te ajude a ser um dev melhor? Clique aqui.

como usar o CSVToJSON no javascript es6

January 04, 2020

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…

como usar o RGBToHex no javascript es6

January 04, 2020

Converts the values of RGB components to a color code. Convert given RGB parameters to hexadecimal string using bitwise left-shift operator…

como usar o URLJoin no javascript es6

January 04, 2020

Joins all given URL segments together, then normalizes the resulting URL. Use to combine URL segments, then a series of calls with various…

como usar o all no javascript es6

January 04, 2020

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…

como usar o allEqual no javascript es6

January 04, 2020

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…

como usar o any no javascript es6

January 04, 2020

Returns if the provided predicate function returns for at least one element in a collection, otherwise. Use to test if any elements in…

como usar o ary no javascript es6

January 04, 2020

Creates a function that accepts up to arguments, ignoring any additional arguments. Call the provided function, , with up to arguments…

como usar o atob no javascript es6

January 04, 2020

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…

como usar o average no javascript es6

January 04, 2020

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…

como usar o attempt no javascript es6

January 04, 2020

Attempts to invoke a function with the provided arguments, returning either the result or the caught error object. Use a block to return…

como usar o bind no javascript es6

January 04, 2020

Creates a function that invokes with a given context, optionally adding any additional supplied parameters to the beginning of the…

como usar o bindAll no javascript es6

January 04, 2020

Binds methods of an object to the object itself, overwriting the existing method. Use to return a that uses to apply the given context…

como usar o bindKey no javascript es6

January 04, 2020

Creates a function that invokes the method at a given key of an object, optionally adding any additional supplied parameters to the…

como usar o btoa no javascript es6

January 04, 2020

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…

como usar o call no javascript es6

January 04, 2020

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…

como usar o checkProp no javascript es6

January 04, 2020

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…

como usar o chunk no javascript es6

January 04, 2020

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…

como usar o compose no javascript es6

January 04, 2020

Performs right-to-left function composition. Use to perform right-to-left function composition. The last (rightmost) function can accept…

como usar o converge no javascript es6

January 04, 2020

Accepts a converging function and a list of branching functions and returns a function that applies each branching function to the arguments…

como usar o colorize no javascript es6

January 04, 2020

Add special characters to text to print in color in the console (combined with ). Use template literals and special characters to add the…

como usar o countBy no javascript es6

January 04, 2020

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…

como usar o counter no javascript es6

January 04, 2020

Creates a counter with the specified range, step and duration for the specified selector. Check if has the proper sign and change it…

como usar o curry no javascript es6

January 04, 2020

Curries a function. Use recursion. If the number of provided arguments () is sufficient, call the passed function . Otherwise, return a…

como usar o debounce no javascript es6

January 04, 2020

Creates a debounced function that delays invoking the provided function until at least milliseconds have elapsed since the last time it was…

como usar o deepClone no javascript es6

January 04, 2020

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…

como usar o delay no javascript es6

January 04, 2020

Invokes the provided function after milliseconds. Use to delay execution of . Use the spread () operator to supply the function with an…

como usar o deepGet no javascript es6

January 04, 2020

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…

como usar o defaults no javascript es6

January 04, 2020

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…

como usar o dig no javascript es6

January 04, 2020

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…

como usar o drop no javascript es6

January 04, 2020

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…

como usar o dropWhile no javascript es6

January 04, 2020

Removes elements in an array until the passed function returns . Returns the remaining elements in the array. Loop through the array, using…

como usar o elo no javascript es6

January 04, 2020

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…

como usar o equals no javascript es6

January 04, 2020

Performs a deep comparison between two values to determine if they are equivalent. Check if the two values are identical, if they are both…

como usar o everyNth no javascript es6

January 04, 2020

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…

como usar o extendHex no javascript es6

January 04, 2020

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…

como usar o fibonacci no javascript es6

January 04, 2020

Generates an array, containing the Fibonacci sequence, up until the nth term. Create an empty array of the specific length, initializing the…

como usar o findKey no javascript es6

January 04, 2020

Returns the first key that satisfies the provided testing function. Otherwise is returned. Use to get all the properties of the object…

como usar o findLast no javascript es6

January 04, 2020

Returns the last element for which the provided function returns a truthy value. Use to remove elements for which returns falsy values…

como usar o flatten no javascript es6

January 04, 2020

Flattens an array up to the specified depth. Use recursion, decrementing by 1 for each level of depth. Use and to merge elements or…

como usar o forOwn no javascript es6

January 04, 2020

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…

como usar o flip no javascript es6

January 04, 2020

Flip takes a function as an argument, then makes the first argument the last. Return a closure that takes variadic inputs, and splices the…

como usar o functions no javascript es6

January 04, 2020

Returns an array of function property names from own (and optionally inherited) enumerable properties of an object. Use to iterate over the…

como usar o gcd no javascript es6

January 04, 2020

Calculates the greatest common divisor between two or more numbers/arrays. The inner function uses recursion. Base case is when equals…

como usar o get no javascript es6

January 04, 2020

Retrieve a set of properties indicated by the given selectors from an object. Use for each selector, to replace square brackets with dots…

como usar o getImages no javascript es6

January 04, 2020

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…

como usar o groupBy no javascript es6

January 04, 2020

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…

como usar o hasFlags no javascript es6

January 04, 2020

Check if the current process’s arguments contain the specified flags. Use and to check if contains all the specified flags. Use a regular…

como usar o hasKey no javascript es6

January 04, 2020

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…

como usar o head no javascript es6

January 04, 2020

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…

como usar o httpGet no javascript es6

January 04, 2020

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…

como usar o hexToRGB no javascript es6

January 04, 2020

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…

como usar o httpPost no javascript es6

January 04, 2020

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…

como usar o hz no javascript es6

January 04, 2020

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…

como usar o inRange no javascript es6

January 04, 2020

Checks if the given number falls within the given range. Use arithmetic comparison to check if the given number is in the specified range…

como usar o initial no javascript es6

January 04, 2020

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

como usar o is no javascript es6

January 04, 2020

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…

como usar o isBoolean no javascript es6

January 04, 2020

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…

como usar o isBrowser no javascript es6

January 04, 2020

Determines if the current runtime environment is a browser so that front-end modules can run on the server (Node) without throwing errors…

como usar o isEven no javascript es6

January 04, 2020

Returns if the given number is even, otherwise. Checks whether a number is odd or even using the modulo () operator. Returns if the…

como usar o isEmpty no javascript es6

January 04, 2020

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…

como usar o isNil no javascript es6

January 04, 2020

Returns if the specified value is or , otherwise. Use the strict equality operator to check if the value and of are equal to or…

como usar o isNull no javascript es6

January 04, 2020

Returns if the specified value is , otherwise. Use the strict equality operator to check if the value and of are equal to . Acesse a…

como usar o isObject no javascript es6

January 04, 2020

Returns a boolean determining if the passed value is an object or not. Uses the constructor to create an object wrapper for the given…

como usar o isNumber no javascript es6

January 04, 2020

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…

como usar o isOdd no javascript es6

January 04, 2020

Returns if the given number is odd, otherwise. Checks whether a number is odd or even using the modulo () operator. Returns if the number…

como usar o isPrime no javascript es6

January 04, 2020

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…

como usar o isSorted no javascript es6

January 04, 2020

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…

como usar o isStream no javascript es6

January 04, 2020

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…

como usar o isString no javascript es6

January 04, 2020

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…

como usar o isWeekend no javascript es6

January 04, 2020

Results in a boolean representation of a specific date. Pass the specific date object firstly. Use to check weekend based on the day being…

como usar o join no javascript es6

January 04, 2020

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…

como usar o last no javascript es6

January 04, 2020

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…

como usar o defer no javascript es6

January 04, 2020

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…

como usar o lcm no javascript es6

January 04, 2020

Returns the least common multiple of two or more numbers. Use the greatest common divisor (GCD) formula and the fact that to determine the…

como usar o mapKeys no javascript es6

January 04, 2020

Creates an object with keys generated by running the provided function for each key and the same values as the provided object. Use to…

como usar o mask no javascript es6

January 04, 2020

Replaces all but the last of characters with the specified mask character. Use to grab the portion of the characters that will remain…

como usar o maxBy no javascript es6

January 04, 2020

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…

como usar o matches no javascript es6

January 04, 2020

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…

como usar o maxDate no javascript es6

January 04, 2020

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…

como usar o maxN no javascript es6

January 04, 2020

Returns the maximum elements from the provided array. If is greater than or equal to the provided array’s length, then return the original…

como usar o memoize no javascript es6

January 04, 2020

Returns the memoized (cached) function. Create an empty cache by instantiating a new object. Return a function which takes a single…

como usar o merge no javascript es6

January 04, 2020

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…

como usar o median no javascript es6

January 04, 2020

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…

como usar o midpoint no javascript es6

January 04, 2020

Calculates the midpoint between two pairs of (x,y) points. Destructure the array to get , , and , calculate the midpoint for each dimension…

como usar o minDate no javascript es6

January 04, 2020

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…

como usar o minBy no javascript es6

January 04, 2020

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…

como usar o minN no javascript es6

January 04, 2020

Returns the minimum elements from the provided array. If is greater than or equal to the provided array’s length, then return the original…

como usar o negate no javascript es6

January 04, 2020

Negates a predicate function. Take a predicate function and apply the not operator () to it with its arguments. Acesse a Referência original

como usar o nest no javascript es6

January 04, 2020

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…

como usar o none no javascript es6

January 04, 2020

Returns if the provided predicate function returns for all elements in a collection, otherwise. Use to test if any elements in the…

como usar o nthArg no javascript es6

January 04, 2020

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…

como usar o off no javascript es6

January 04, 2020

Removes an event listener from an element. Use to remove an event listener from an element. Omit the fourth argument to use or specify…

como usar o offset no javascript es6

January 04, 2020

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…

como usar o omit no javascript es6

January 04, 2020

Omits the key-value pairs corresponding to the given keys from an object. Use , and to remove the provided keys. Use to convert the…

como usar o on no javascript es6

January 04, 2020

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…

como usar o omitBy no javascript es6

January 04, 2020

Creates an object composed of the properties the given function returns falsy for. The function is invoked with two arguments: (value, key…

como usar o once no javascript es6

January 04, 2020

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…

como usar o orderBy no javascript es6

January 04, 2020

Returns a sorted array of objects ordered by properties and orders. Uses , on the array with a default value of , use array destructuring…

como usar o over no javascript es6

January 04, 2020

Creates a function that invokes each provided function with the arguments it receives and returns the results. Use and to apply each…

como usar o pad no javascript es6

January 04, 2020

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…

como usar o partial no javascript es6

January 04, 2020

Creates a function that invokes with prepended to the arguments it receives. Use the spread operator () to prepend to the list of…

como usar o partition no javascript es6

January 04, 2020

Groups the elements into two arrays, depending on the provided function’s truthiness for each element. Use to create an array of two arrays…

como usar o pick no javascript es6

January 04, 2020

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…

como usar o pickBy no javascript es6

January 04, 2020

Creates an object composed of the properties the given function returns truthy for. The function is invoked with two arguments: (value, key…

como usar o pluralize no javascript es6

January 04, 2020

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…

como usar o powerset no javascript es6

January 04, 2020

Returns the powerset of a given array of numbers. Use combined with to iterate over elements and combine into an array containing all…

como usar o prefix no javascript es6

January 04, 2020

Returns the prefixed version (if necessary) of a CSS property that the browser supports. Use on an array of vendor prefix strings to test…

como usar o primes no javascript es6

January 04, 2020

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…

como usar o pull no javascript es6

January 04, 2020

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…

como usar o pullBy no javascript es6

January 04, 2020

Mutates the original array to filter out the values specified, based on a given iterator function. Check if the last argument provided in a…

como usar o rearg no javascript es6

January 04, 2020

Creates a function that invokes the provided function with its arguments arranged according to the specified indexes. Use to reorder…

como usar o redirect no javascript es6

January 04, 2020

Redirects to a specified URL. Use or to redirect to . Pass a second argument to simulate a link click ( - default) or an HTTP redirect…

como usar o remove no javascript es6

January 04, 2020

Removes elements from an array for which the given function returns . Use to find array elements that return truthy values and to remove…

como usar o reject no javascript es6

January 04, 2020

Filters an array’s values based on a predicate function, returning only values for which the predicate function returns . Use in…

como usar o round no javascript es6

January 04, 2020

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…

como usar o runAsync no javascript es6

January 04, 2020

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…

como usar o sample no javascript es6

January 04, 2020

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…

como usar o sdbm no javascript es6

January 04, 2020

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…

como usar o shank no javascript es6

January 04, 2020

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…

como usar o show no javascript es6

January 04, 2020

Shows all the elements specified. Use the spread operator () and to clear the property for each element specified. Acesse a Referência…

como usar o shuffle no javascript es6

January 04, 2020

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…

como usar o size no javascript es6

January 04, 2020

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…

como usar o sleep no javascript es6

January 04, 2020

Delays the execution of an asynchronous function. Delay executing part of an function, by putting it to sleep, returning a . Acesse a…

como usar o sum no javascript es6

January 04, 2020

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…

como usar o sumPower no javascript es6

January 04, 2020

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…

como usar o sumBy no javascript es6

January 04, 2020

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…

como usar o tail no javascript es6

January 04, 2020

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…

como usar o take no javascript es6

January 04, 2020

Returns an array with n elements removed from the beginning. Use to create a slice of the array with elements taken from the beginning…

como usar o throttle no javascript es6

January 04, 2020

Creates a throttled function that only invokes the provided function at most once per every milliseconds Use and to throttle the given…

como usar o times no javascript es6

January 04, 2020

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…

como usar o timeTaken no javascript es6

January 04, 2020

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…

como usar o toHash no javascript es6

January 04, 2020

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…

como usar o tomorrow no javascript es6

January 04, 2020

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…

como usar o transform no javascript es6

January 04, 2020

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…

como usar o unary no javascript es6

January 04, 2020

Creates a function that accepts up to one argument, ignoring any additional arguments. Call the provided function, , with just the first…

como usar o uncurry no javascript es6

January 04, 2020

Uncurries a function up to depth . Return a variadic function. Use on the provided arguments to call each subsequent curry level of the…

como usar o unfold no javascript es6

January 04, 2020

Builds an array, using an iterator function and an initial seed value. Use a loop and to call the function repeatedly until it returns…

como usar o union no javascript es6

January 04, 2020

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…

como usar o unionBy no javascript es6

January 04, 2020

Returns every element that exists in any of the two arrays once, after applying the provided function to each array element of both. Create…

como usar o unzip no javascript es6

January 04, 2020

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…

como usar o when no javascript es6

January 04, 2020

Tests a value, , against a predicate function. If , return . Else, return . Return a function expecting a single value, , that returns the…

como usar o words no javascript es6

January 04, 2020

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…

como usar o without no javascript es6

January 04, 2020

Filters out the elements of an array, that have one of the specified values. Use to create an array excluding(using ) all given values…

como usar o xProd no javascript es6

January 04, 2020

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…

como usar o zip no javascript es6

January 04, 2020

Creates an array of elements, grouped based on the position in the original arrays. Use to get the longest array in the arguments. Creates…

como usar o yesNo no javascript es6

January 04, 2020

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…

como usar o zipWith no javascript es6

January 04, 2020

Creates an array of elements, grouped based on the position in the original arrays and using function as the last value to specify how…