Skip to content

Instantly share code, notes, and snippets.

View thamsrang's full-sized avatar

Thams thamsrang

  • Chennai, Tamil Nadu, India
View GitHub Profile
// This implementation does not work with Symbols, BigInts
function stringify(data) {
if (data === undefined)
return undefined
if (data === null)
return 'null'
if (data.toString() === "NaN")
return 'null'
if (data === Infinity)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thamsrang
thamsrang / js-numbers.md
Created July 1, 2022 06:35
JS number conversion

JS numbers

@thamsrang
thamsrang / JavaScript-ES6.md
Last active August 8, 2019 07:32
#ES6 #js

Immediately-Invoked Arrow Function (IIAF)

(() => {
  return 123
})();

Arrow Functions