Skip to content

Instantly share code, notes, and snippets.

@minodisk
Created October 18, 2011 12:35
Show Gist options
  • Save minodisk/1295311 to your computer and use it in GitHub Desktop.
Save minodisk/1295311 to your computer and use it in GitHub Desktop.
native JSON がミリ秒を無視しないかの判定
my.JSON = (function () {
if (window.JSON && window.JSON.stringify([new Date()]).charAt(21) === '.') {
return window.JSON;
}
var JSON = {};
// implementation
return JSON;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment