Skip to content

Enumerable#any vs Array#some #12533

@bryanaka

Description

@bryanaka

In the docs, it says Enumerable#any should return a boolean, but this isn't necessarily true. It returns the first truthy value returned or the last falsey value returned.

This is inconsistent with Array#some as well, which always returns true or false.

Is this correct functionality? Either way, I can make either a PR to the docs or this repo to correct the behavior/explanation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions