From 967e724b479b37db1b9656d18b300344628c3cbe Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Tue, 7 Oct 2014 16:57:49 +1100 Subject: [PATCH] types: remove JSPerf references --- src/types.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/types.js b/src/types.js index 257156b..ddbf13d 100644 --- a/src/types.js +++ b/src/types.js @@ -1,12 +1,10 @@ module.exports = function enforce(type, value) { switch (type) { - // http://jsperf.com/array-typecheck-2 case 'Array': { if (Array.isArray(value)) return break } - // http://jsperf.com/boolean-typecheck case 'Boolean': { if (typeof value === 'boolean') return break @@ -17,13 +15,11 @@ module.exports = function enforce(type, value) { break } - // http://jsperf.com/number-constructor-v-isnan case 'Number': { if (typeof value === 'number') return break } - // http://jsperf.com/string-typecheck-2 case 'String': { if (typeof value === 'string') return break