News for hackers. Stuff that matters.
Re:The San Francisco Suicide Club (1977-82) by shouldbeworking on Tuesday February 10, 2015 @12:50AM (#9025596)

    function parseJson(str) {
      try {
        return JSON.parse(str);
      } catch (err) {
        if (err instanceof SyntaxError) {
          return undefined;
        } else {
          throw err;
        }
      }
    }

There are no comments on this comment yet.