8000 get/set internal array · Issue #8 · jmsv/oaty · GitHub
[go: up one dir, main page]

Skip to content

get/set internal array #8

Open
Open

Description

@jmsv

get/set functions for internal array, this._original. something like:

get array(): object[] {
  return this._original
}

set array(input: object[]) {
  // same as constructor but without reassigning `this._keys`
  // should be moved to new function to avoid code duplication
  this._original = input.map((x) => Object.assign({}, x))
  this._transposed = transpose(this._keys, this._original)
}

Activity

  1. j-m commented on May 12, 2019

    @j-m
    Collaborator

    Redesign adds getters for original and internal but no setters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0