Skip to content

Instantly share code, notes, and snippets.

View coto's full-sized avatar
🧿

Rodrigo (Coto) coto

🧿
View GitHub Profile
@coto
coto / isObjectLiteral.html
Created July 23, 2009 22:41 — forked from jeresig/isObjectLiteral.html
Identify if an object (JavaScript) is Literal or not
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<!-- Online here: http://ejohn.org/files/bugs/isObjectLiteral/ -->
<title>isObjectLiteral</title>
<style>
li { background: green; } li.FAIL { background: red; }
iframe { display: none; }
</style>