Skip to content
Subhajit Sahu edited this page Mar 25, 2021 · 6 revisions

Converts string to boolean. 📰 📘


parse(s)
// s: a string
const {parse} = require("extra-boolean");

parse("1");
parse("truthy");
parse("not off");
// true

parse("not true");
parse("inactive");
parse("disabled");
// false


References

Clone this wiki locally