JavaScript Method
Map()
The Map
the object holds key-value pairs and remembers the original insertion order of the keys. Any value may be used as either a key or a value.A Map
object iterates its elements in insertion order — a for...of
the loop returns an array of [key, value]
for each iteration.
filter()
The filter()
Array method creates a new array with elements that fall under given criteria from an existing array
bind()
The bind()
function creates a new bound function, which is an exotic function object (a term from ECMAScript 2015) that wraps the original function object. Calling the bound function generally results in the execution of its wrapped function.
call
With the call()
method, you can write a method that can be used on different objects. The call()
method calls a function functionName
with a given this
value and arguments.
apply
The apply()
method is similar to the call()
method (previous above). The apply()
method, you can write a method that can be used on different objects.