MCPcopy
hub / github.com/openstf/stf / compareIgnoreCase

Function compareIgnoreCase

res/app/device-list/column/device-column-service.js:363–374  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

361}
362
363function compareIgnoreCase(a, b) {
364/***** fix bug: cast to String for Safari compatibility ****/
365 var la = (String(a) || '').toLowerCase()
366 var lb = (String(b) || '').toLowerCase()
367/***********************************************************/
368 if (la === lb) {
369 return 0
370 }
371 else {
372 return la < lb ? -1 : 1
373 }
374}
375
376function filterIgnoreCase(a, filterValue) {
377/***** fix bug: cast to String for Safari compatibility ****/

Callers 5

TextCellFunction · 0.70
LinkCellFunction · 0.70
DeviceBrowserCellFunction · 0.70
DeviceNameCellFunction · 0.70
DeviceNoteCellFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected