mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Tweak _.contains optimization.
Former-commit-id: 4c8040972806b2b18958379fde765858d22ceda8
This commit is contained in:
2
vendor/benchmark.js/benchmark.js
vendored
2
vendor/benchmark.js/benchmark.js
vendored
@@ -2841,7 +2841,7 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
// expose Benchmark
|
||||
// some AMD build optimizers, like r.js, check for specific condition patterns like the following:
|
||||
// some AMD build optimizers, like r.js, check for condition patterns like the following:
|
||||
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
|
||||
// define as an anonymous module so, through path mapping, it can be aliased
|
||||
define(['lodash', 'platform'], function(_, platform) {
|
||||
|
||||
2
vendor/platform.js/platform.js
vendored
2
vendor/platform.js/platform.js
vendored
@@ -986,7 +986,7 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
// expose platform
|
||||
// some AMD build optimizers, like r.js, check for specific condition patterns like the following:
|
||||
// some AMD build optimizers, like r.js, check for condition patterns like the following:
|
||||
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
|
||||
// define as an anonymous module so, through path mapping, it can be aliased
|
||||
define(function() {
|
||||
|
||||
Reference in New Issue
Block a user