Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix(utils): pass all Array/Object util shortcuts as functions, for ha…
…ndling late loaded polyfills (#4647) * chore(utils): pass all Array/Object shortcuts as functions My making each shortcut a method, it allows for handling of late loaded polyfills. See #3641 (comment) * Update object.js * Update object.js * Update dom.js * Update dom.js * Update dom.js Co-authored-by: Jacob Müller <jacob.mueller.elz@gmail.com>
- Loading branch information
Showing
with
22 additions
and 29 deletions.
- +2 −2 src/utils/array.js
- +8 −15 src/utils/dom.js
- +12 −12 src/utils/object.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,7 +1,7 @@ | ||
// --- Static --- | ||
|
||
export const from = (...args) => Array.from(...args) | ||
export const isArray = val => Array.isArray(val) | ||
|
||
// --- Instance --- | ||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters