Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

string-includes

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-includes

ES6 String.includes() ponyfill

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
25
-56.14%
Maintainers
1
Weekly downloads
 
Created
Source

string-includes Build Status

ES6 String.includes() ponyfill

Ponyfill: A polyfill that doesn't overwrite the native method

Install

$ npm install --save string-includes

Usage

const stringIncludes = require('string-includes');

stringIncludes('unicorns and rainbows', 'unicorns');
//=> true

stringIncludes('unicorns and rainbows', 'rainbows');
//=> true

stringIncludes('unicorns and rainbows', 'unicorns', 1);
//=> false

API

stringIncludes(string, searchString, [position])

string

Type: string

The string to search in.

searchString

Type: string

A string to be searched for.

position

Type: Number
Default: 0

The position in this string at which to begin searching for searchString.

License

MIT © Kevin Martensson

Keywords

es6

FAQs

Package last updated on 31 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts