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

Method getSortKey

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

Source from the content-addressed store, hash-verified

195
196class NullsFirstSort extends BaseSort {
197 protected override getSortKey(): (item: any) => number {
198 return (item: any) => {
199 return isNullish(item[this.field]) ? 0 : 1;
200 };
201 }
202
203 protected getLabel(): string {
204 const titleCasedField = titleCase(this.field);

Callers

nothing calls this directly

Calls 1

isNullishFunction · 0.90

Tested by

no test coverage detected