Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use
var native_reduceRight
etc. variables instead of `Native = { re…
…duceRight: ... }` This way we only get the native versions of functions we use. Will make testing non-native versions as we can't just swap do `_.Native = {}`, but this wouldn't have worked for `isArray` and `keys` anyways, as these are looked up on initialization, so I think the solution is to have an init() method on underscore where we will re-initialize functions and try and use native versions then
- Loading branch information
Showing
1 changed file
with
28 additions
and
31 deletions.
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