Skip to content

aw030/in_array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

in_array

Nodejs module in_array function similar to PHP function in_array().

Example

const in_array = require("@aw030/in_array");

let needle = "needle";
let haystack = ["needle", "noodle"];

if (in_array(needle, haystack)){
    console.log("str is in array!");
}else{
    console.log("str is not in array!")
}

About

Nodejs module in_array function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published