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

META-INF.resources.bower_components.globalize.src.util.function-name.js Maven / Gradle / Ivy

define([], function () {

    return function (fn) {
        if (fn.name !== undefined) {
            return fn.name;
        }

        // fn.name is not supported by IE.
        var matches = /^function\s+([\w\$]+)\s*\(/.exec(fn.toString());

        if (matches && matches.length > 0) {
            return matches[1];
        }
    };

});




© 2015 - 2025 Weber Informatics LLC | Privacy Policy