Skip to content

small module that provides a 'contains' method for JavaScript

Notifications You must be signed in to change notification settings

trahloff/js-contains

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Node (backend)

  • install with npm install --save js-contains

  • remember to require the plugin

  • example:

    require('js-contains');
    ["hi","ho"].contains("hi") // true
    ["he","ho"].contains("hi") // false
    "asjasdhiasdasd".contains("hi") // true
    "asjasdhoasdasd".contains("hi") // false

Frontend

  • install with bower install --save js-contains

  • inject the js-contains.js file into your HTML:

    <script src="[path_to_bower_packages]/js-contains/js-contains.js"></script>
  • example:

    ["hi","ho"].contains("hi") // true
    ["he","ho"].contains("hi") // false
    "asjasdhiasdasd".contains("hi") // true
    "asjasdhoasdasd".contains("hi") // false

About

small module that provides a 'contains' method for JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published