Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fields = {
- notVisible: [],
- readonly: [],
- async orderReadonly(val = this.readonly) {
- if (this.readonly == val) {
- var arrayOrder = await newFormPage.getReadonlyFieldNames();
- this.readonly = arrayOrder.filter(async (field) => val.includes(field));
- return this.readonly;
- } else {
- var arrayOrder = await newFormPage.getReadonlyFieldNames();
- val = arrayOrder.filter(async (field) => val.includes(field));
- return val;
- }
- },
- minus: function (whole, part) {
- const namesToDeleteSet = new Set(part);
- return whole.filter((name) => {
- return !namesToDeleteSet.has(name);
- });
- },
- plus: function (set1, set2) {
- return set1.concat(set2);
- },
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement