Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buffer: Added Buffer#includes() to keep parity with TypedArray. #3567

Closed
wants to merge 1 commit into from
Closed

buffer: Added Buffer#includes() to keep parity with TypedArray. #3567

wants to merge 1 commit into from

Commits on Oct 28, 2015

  1. buffer: Added Buffer#includes() to keep parity with TypedArray.

    Simply adds Buffer.prototype.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.
    
    Addresses #3552.
    umamialex committed Oct 28, 2015
    Configuration menu
    Copy the full SHA
    25ffa3b View commit details
    Browse the repository at this point in the history