Skip to content

Commit

Permalink
Return native array type with config list (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauravtiwari authored Dec 13, 2017
1 parent f7920ca commit d839231
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package/config_types/config_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* @extends { Array }
*/
class ConfigList extends Array {
static get [Symbol.species]() { return Array }

get(key) {
const index = this.getIndex(key, true)
return this[index].value
Expand Down

0 comments on commit d839231

Please sign in to comment.