Check if prototype exists and prototype is a function
Install
$ npm install --save proto-exists
Usage
const protoExists = ; { thisbar = '⚛'; this '⚇'; } { return thisbar; } { return thisbar; } { thisbar = input; } // returns true;; // returns false;;;;;;;
API
protoExists(construct, name)
Returns a boolean value.
construct
Type: <Function>
, <Object>
A constructor function.
name
Type: string
The prototype name of constructor.
License
MIT © Guntur Poetra