/string-contains

Function that checks if a string contains another string

Primary LanguageJavaScriptMIT LicenseMIT

string-contains

Function that checks if a string contains another string.

Install

Install with npm:

npm install string-contains --save-dev

Usage

var contains = require("string-contains");
console.log(contains("Hello world", "world"));
//=> 'true'

Author

Tor Arne Kvaløy

License

Copyright (c) 2014 Tor Arne Kvaløy, contributors.
Released under the MIT license