mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add context.keys function to list top-level keys
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user