The below code
toString.call( Ctor ) === ObjectFunctionString
seems to be expensive, so can we change ' toString.call( Ctor )' to 'Ctor.name' which is just accessing the property and check with ({}).constructor.name.
This will definitely boost performance atleast 3X times faster than existing condition check.
Given the jsbin link to check the performance. Please let me know whether this one can be implement in jquery. So that i can raise ticket and put the fix.