Files
node/doc/api
Alexander Martin 9ab669f853 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-16 12:33:12 -05:00
..
2015-08-04 11:56:14 -07:00
2015-12-15 13:49:42 -05:00
2015-08-04 11:56:14 -07:00
2015-12-15 13:50:07 -05:00
2015-12-15 14:11:32 -05:00
2010-11-07 17:22:56 -08:00
2015-12-15 14:12:03 -05:00
2015-11-13 23:32:23 +11:00
2015-11-13 23:32:23 +11:00