MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / getSortKey

Method getSortKey

js/botasaurus-server-js/src/sorts.ts:214–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213class NullsLastSort extends BaseSort {
214 protected override getSortKey(): (item: any) => number {
215 return (item: any) => {
216 return isNullish(item[this.field]) ? 1 : 0;
217 };
218 }
219
220 protected getLabel(): string {
221 const titleCasedField = titleCase(this.field);

Callers

nothing calls this directly

Calls 1

isNullishFunction · 0.90

Tested by

no test coverage detected