Skip to content
New issue

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

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

Already on GitHub? # to your account

get/set internal array #8

Open
jmsv opened this issue May 11, 2019 · 1 comment
Open

get/set internal array #8

jmsv opened this issue May 11, 2019 · 1 comment

Comments

@jmsv
Copy link
Owner

jmsv commented May 11, 2019

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)
}
@j-m
Copy link
Collaborator

j-m commented May 12, 2019

Redesign adds getters for original and internal but no setters.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants