diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index a1586729..fb710a71 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -142,36 +142,6 @@ Ox.isEqual = function(a, b) { return isEqual; }; -/*@ -Ox.isFalsy Returns true for undefined, null, false, 0, '', [], {} - (value) -> True if the value is falsy - value <*> Any value - > Ox.isFalsy(void 0) - true - > Ox.isFalsy(null) - true - > Ox.isFalsy(false) - true - > Ox.isFalsy(0) - true - > Ox.isFalsy('') - true - > Ox.isFalsy([]) - true - > Ox.isFalsy({}) - true - > Ox.isFalsy(NaN) - false - > Ox.isFalsy(function() {}) - false - > Ox.isFalsy(/ /) - false -@*/ -Ox.isFalsy = function(val) { - return (!val && !Ox.isNaN(val)) - || (Ox.isEmpty(val) && !Ox.isFunction(val)); -}; - /*@ Ox.isFunction Tests if a value is a function (value) -> True if the value is a function