Add context.keys function to list top-level keys

This commit is contained in:
Nick O'Leary
2017-05-03 20:51:33 +01:00
parent 2249b9449c
commit 29bd43413a
2 changed files with 25 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ function createContext(id,seed) {
obj.set = function set(key, value) {
util.setMessageProperty(data,key,value);
}
obj.keys = function() {
return Object.keys(data);
}
return obj;
}