Skip to content

Add an isImmutable function #33

@hughfdjackson

Description

@hughfdjackson

It's possible that an .immutable flag would be contained in data. For instance:

var myRecord = {
  id: '3232',
  payload: { ... },
  immutable: true
}

As a user, I want to be sure whether or not this is an actual immutable object, or simply data.

Acceptance:
An isImmutable predicate function is created, that confirms that:
*get, has, assoc and dissoc methods are available;

  • the immutable flag is set.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions