ES5 no-multi-spaces

This commit is contained in:
Amine Ben hammou
2017-09-21 08:47:23 +00:00
parent 680446b77e
commit 33572b2dc7
4 changed files with 4 additions and 5 deletions

View File

@ -57,8 +57,8 @@ define(
// Coerce values.
if ( coerce ) {
val = val && !isNaN(val) ? +val // number
: val === 'undefined' ? undefined // undefined
val = val && !isNaN(val) ? +val // number
: val === 'undefined' ? undefined // undefined
: coerce_types[val] !== undefined ? coerce_types[val] // true, false, null
: val; // string
}