All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.bower_components.moment.src.lib.utils.some.js Maven / Gradle / Ivy

var some;
if (Array.prototype.some) {
    some = Array.prototype.some;
} else {
    some = function (fun) {
        var t = Object(this);
        var len = t.length >>> 0;

        for (var i = 0; i < len; i++) {
            if (i in t && fun.call(this, t[i], i, t)) {
                return true;
            }
        }

        return false;
    };
}

export {some as default};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy