Javascript String includes() method

Description

Javascript String includes() method


String.prototype.includes = function () {
    'use strict';
    return String.prototype.indexOf.apply(this, arguments) !== -1;
};



PreviousNext

Related