UNPKG

eslint-config-airbnb-standard

Version:

Airbnb's JS ESLint config + JS Standard Style + semicolons

8 lines (5 loc) 290 B
'use strict'; // https://www.ecma-international.org/ecma-262/6.0/#sec-isconstructor module.exports = function IsConstructor(argument) { return typeof argument === 'function' && !!argument.prototype; // unfortunately there's no way to truly check this without try/catch `new argument` };