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

package.helpers.isAbstractClosure.js Maven / Gradle / Ivy

There is a newer version: 1.22.3
Show newest version
'use strict';

var functionName = require('function.prototype.name');

var anon = functionName(function () {});

module.exports = function isAbstractClosure(x) {
	return typeof x === 'function' && (!x.prototype || functionName(x) === anon);
};




© 2015 - 2025 Weber Informatics LLC | Privacy Policy