9 lines
No EOL
184 B
JavaScript
9 lines
No EOL
184 B
JavaScript
var boolString = require('./index.js');
|
|
|
|
var yesString = "yes";
|
|
|
|
console.log(boolString(yesString)); // true
|
|
|
|
var noString = "no";
|
|
|
|
console.log(boolString(noString)); // false
|