0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 15:30:56 +01:00
nodejs/doc
Alexander Martin 67e181986a buffer: add includes() for parity with TypedArray
Add Buffer#includes() by wrapping an indexOf and performing a strict
equals check to -1.

The includes method takes the search value, byteOffset, and encoding as
arguments.

The test is a modified version of the indexOf test.

Fixes: https://github.com/nodejs/node/issues/3552
PR-URL: https://github.com/nodejs/node/pull/3567
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2015-12-10 13:41:40 -07:00
..
api buffer: add includes() for parity with TypedArray 2015-12-10 13:41:40 -07:00
api_assets doc: fix color of linked code blocks 2015-11-30 18:56:36 +01:00
tsc-meetings doc: add TSC meeting minutes 2015-10-21 2015-10-26 09:36:42 -07:00
full-white-stripe.jpg installer: fix installers for node.js rename 2015-08-23 17:59:43 -04:00
node.1 tools: add --prof-process flag to node binary 2015-12-08 02:00:46 +01:00
osx_installer_logo.png installer: fix installers for node.js rename 2015-08-23 17:59:43 -04:00
releases.md doc: jenkins-iojs.nodesource.com -> ci.nodejs.org 2015-09-24 00:20:53 +02:00
template.html node: rename from io.js to node 2015-08-23 17:59:43 -04:00
thin-white-stripe.jpg installer: fix installers for node.js rename 2015-08-23 17:59:43 -04:00