Skip to content
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was archived by the owner on Jul 23, 2021. It is now read-only.

Splice fails to return an empty List when provided with the first and last elements. Instead keeps the last one. #60

@Methuselah96

Description

@Methuselah96

From @mattgibson on Sat, 18 Nov 2017 22:55:59 GMT

expect(fromJS(['a', 'b', 'c', 'd']).splice(0, 3)).toEqual(fromJS([]));

I think the above should work, but instead, I see this:

Expected value to equal:
  Immutable.List []
Received:
  Immutable.List ["d"]

This is with 4.0.0-rc.9

Copied from original issue: immutable-js#1447

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