Skip to content

Latest commit

 

History

History

ensure

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

ensure es6

Ensures value is valid

Examples

ensure("en", "tr", "en", "de"); // "en"
ensure("fr", "tr", "en", "de"); // "tr"
ensure("true", true, false); // true"
ensure({}, 1, 2); // 1