What is null in JSON.stringify(obj,null,2)

const obj = {
"name":"akshay",
"password":"some password",
"email":"abc@hotmail.com"
}
{
"name":"akshay",
"password":"some password",
}
JSON.stringify(obj,(key,value) => { 
if(key.match(/(email|password)/)) return "**"
return value;
},2)

Conclusion

--

--

--

#IBMER #JS-Advocate #SoftwareEngineer #TechnologyLover #Learner #intermediatetennisplayer #lifebetweenthebraces{}

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Type Signatures — Functional Programming for JavaScript Developers

How To Add Draft Posts To A Gatsby Blog

“Let’s dive into the depths of Mobile App development with React Native.” | Part 01

Logging In the Console Like a Pro

Create a React app using Webpack 5 + Babel + Karma + Redux (Part 2: REDUX)

Svelte.js: Two way binding

JS Framework for PatternFly 4

The PatternPast visual logo. It reads “PatternFly vintage blog, established 2015.”

Difference between Session Cookies vs. JWT (JSON Web Tokens), for session management.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Akshay Mattoo

Akshay Mattoo

#IBMER #JS-Advocate #SoftwareEngineer #TechnologyLover #Learner #intermediatetennisplayer #lifebetweenthebraces{}

More from Medium

Basic things to know about “Application Framework”

CS371p Spring 2022: Sarunas Budreckis — Entry #7

Playing with ConfigCat’s Feature Flags in a Phaser.io application

Objects from Module 3