Implement various Lodash functions and methods to manipulate and transform data efficiently, a common task given during front end interviews and improve your front end interview readiness.
所有练习题目
题目列表
Count ByImplement a function that counts the number of times a value appears in an array based on a function or property name
语言
JSTS
DebounceImplement a function to limit how many times a function can be executed by delaying the execution of the function until after a specified time after its last execution attempt
语言
JSTS
FlattenImplement a function that recursively flattens an array into a single level deep
语言
JSTS
Deep CloneImplement a function that performs a deep copy of a value
语言
JSTS
ClampImplement a function to clamp a number within the inclusive lower and upper bounds
语言
JSTS
ChunkImplement a function that creates an array of elements split into smaller groups of a specified size
语言
JSTS
CompactImplement a function that creates an array with all falsey values removed
语言
JSTS
DifferenceImplement a function that finds the difference in values between arrays
语言
JSTS
Drop Right WhileImplement a function that excludes elements from the end of an array until the predicate returns false
语言
JSTS
Drop WhileImplement a function that excludes elements from the beginning of an array until the predicate returns false
语言
JSTS
FillImplement a function that fills an array with values within specified indices
语言
JSTS
Find IndexImplement a function that returns the index of the first element in the array that satisfies the provided testing function
语言
JSTS
Find Last IndexImplement a function that returns the index of the last element in the array that satisfies the provided testing function
语言
JSTS
From PairsImplement a function that returns an object composed from key-value pairs
语言
JSTS
GetImplement a function to safely access deeply-nested properties in JavaScript objects
语言
JSTS
In RangeImplement a function to check if a number falls between two numbers
语言
JSTS
IntersectionImplement a function that computes the intersection of arrays, returning a new array containing unique values present in all given arrays
语言
JSTS
OnceImplement a function that accepts a callback and restricts its invocation to at most once
语言
JSTS
Unique ArrayImplement a function to remove all duplicate values from an array
语言
JSTS
SizeImplement a function that returns the size of collection
语言
JSTS
CurryImplement a function that transforms a function that takes multiple arguments into a function that can be repeatedly called with only one argument at a time
语言
JSTS
Group ByImplement a function that groups values in an array based on a function or property name
语言
JSTS
Intersection ByImplement a function that returns an array of unique values that are included in all given arrays based on a provided iteratee function
语言
JSTS
Intersection WithComputes the intersection of arrays using a custom comparator function to determine equality between elements
语言
JSTS
Is EmptyImplement a function to check if a value is an empty object, collection, map, or set
语言
JSTS
LimitImplement a function that accepts a callback and restricts its invocation to at most N times
语言
JSTS
ThrottleImplement a function to control the execution of a function by limiting how many times it can execute over time
语言
JSTS
Deep EqualImplement a function that determines if two values are equal