mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 10:33:30 +01:00
Merge branch 'bugfix/docs' of https://github.com/hkwu/discord.js into hkwu-bugfix/docs
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -210,7 +210,7 @@ class Collection extends Map {
|
|||||||
* [Array.some()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some).
|
* [Array.some()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some).
|
||||||
* @param {function} fn Function used to test (should return a boolean)
|
* @param {function} fn Function used to test (should return a boolean)
|
||||||
* @param {Object} [thisArg] Value to use as `this` when executing function
|
* @param {Object} [thisArg] Value to use as `this` when executing function
|
||||||
* @returns {Collection}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
some(fn, thisArg) {
|
some(fn, thisArg) {
|
||||||
if (thisArg) fn = fn.bind(thisArg);
|
if (thisArg) fn = fn.bind(thisArg);
|
||||||
@@ -225,7 +225,7 @@ class Collection extends Map {
|
|||||||
* [Array.every()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every).
|
* [Array.every()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every).
|
||||||
* @param {function} fn Function used to test (should return a boolean)
|
* @param {function} fn Function used to test (should return a boolean)
|
||||||
* @param {Object} [thisArg] Value to use as `this` when executing function
|
* @param {Object} [thisArg] Value to use as `this` when executing function
|
||||||
* @returns {Collection}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
every(fn, thisArg) {
|
every(fn, thisArg) {
|
||||||
if (thisArg) fn = fn.bind(thisArg);
|
if (thisArg) fn = fn.bind(thisArg);
|
||||||
|
|||||||
Reference in New Issue
Block a user