Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getValue(row, key) {
return ObjectUtils.resolve(row, key);
}
return data.sort((a, b) => {
const propertyA: number | string = ObjectUtils.resolve(
a,
this._sort.active
);
const propertyB: number | string = ObjectUtils.resolve(
b,
this._sort.active
);
return ObjectUtils.naturalCompare(
propertyB,
propertyA,
this._sort.direction
);
});
}
public getConfig(key: string): any {
return ObjectUtils.resolve(this.config, key);
}
public getConfig(key: string): any {
return ObjectUtils.resolve(this.config, key);
}
return data.sort((a, b) => {
const propertyA: number | string = ObjectUtils.resolve(
a,
this._sort.active
);
const propertyB: number | string = ObjectUtils.resolve(
b,
this._sort.active
);
return ObjectUtils.naturalCompare(
propertyB,
propertyA,
this._sort.direction
);
});
}
public getConfig(key: string): any {
return ObjectUtils.resolve(this.config, key);
}
.map(c => ObjectUtils.resolve(item, c.name))
.join(' ')