Skip to content

Commit

Permalink
Merge pull request #669 from axelvaindal/v2
Browse files Browse the repository at this point in the history
Allow retrieving list of values from an Enum type
  • Loading branch information
lukejagodzinski authored Apr 2, 2018
2 parents 0928734 + 72efb46 commit 86dc6fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/modules/fields/Enum.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ const Enum = {
const Enum = function Enum(identifier) {
return Enum[identifier];
};
Enum.getValues = function() {
return values;
};
Enum.getIdentifiers = function() {
return keys;
};
Expand Down

0 comments on commit 86dc6fc

Please sign in to comment.