Skip to content

PrassesKhadka/firebase-crud

Repository files navigation

Firebase CRUD

Learnings:

  • !! : coerce a value to its boolean equivalent
var a = 0 ;
var b = !!a; // b will be false, since 0 is falsy
  • ?? : nullish coalescing operator
const value = null(or undefined);
const result = value ?? "default";
console.log(result); // Outputs: "default"
  • ?. : optional chaining operator short-circuits the evaluation if any intermediate property in the chain is nullish (null or undefined), and returns undefined instead of throwing an error.

  • JSON.parse

const value="false"
JSON.parse(value)  // Output: false in boolean

Some useful github repos to check out:

Releases

No releases published

Packages

No packages published

Languages