creat call-apply-bind-methods readme files (#2172)
This commit is contained in:
1 parent
b9f912ef10
commit
12e17dfb68
3 files changed
+18
No files matched your search
@@ -0,0 +1,6 @@
|
||||
# call() method
|
||||
|
||||
The `call()` method calls the function with a reference to the aspire object to `this` keyword. `call()` method accepts an argument list and each arguments should be provided individually.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call'>call() method</BadgeLink>
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
# apply() method
|
||||
|
||||
`apply()` method is almost identical to `call()` method, except that `call()` method accepts an argument list, while `apply()` method accepts a single array of arguments.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply'>apply() method</BadgeLink>
|
||||
@@ -0,0 +1,6 @@
|
||||
# bind() method
|
||||
|
||||
The `bind()` method return a new method that has its `this` keyword refers to the aspire object, with a given sequence of arguments which can be call later.
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
|
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind'>bind() method</BadgeLink>
|
||||
Reference in new issue
Block a user