n8n-nodes-wechat-work
Version:
17 lines • 564 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class NodeUtils {
static getNodeFixedCollection(data, collectionName) {
return data[collectionName] || [];
}
static getNodeFixedCollectionList(data, collectionName, propertyName) {
const list = this.getNodeFixedCollection(data, collectionName);
const result = [];
for (const item of list) {
result.push(item[propertyName]);
}
return result;
}
}
exports.default = NodeUtils;
//# sourceMappingURL=NodeUtils.js.map