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

There is a newer version: 0.66.0.1
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy