Created
July 24, 2016 23:19
-
-
Save julienetie/2db92c004a60859e7f0e99addbb401db to your computer and use it in GitHub Desktop.
Determine if value is an object literal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isObjectLiteral(value){ | |
| return value === Object(value) && Object.prototype.toString.call(value) !== '[object Array]'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment