jonschlinkert / kind-of

Get the native JavaScript type of a value, fast. Used by superstruct, micromatch and many others!
https://github.com/jonschlnkert
MIT License
347 stars 38 forks source link

Added undefined check #14

Closed struct78 closed 7 years ago

struct78 commented 7 years ago

IE11 and below doesn’t support the name property of the constructor object, so put in a check to avoid exceptions when slice() method is called.