MCPcopy Index your code
hub / github.com/dataease/SQLBot / _includes

Function _includes

frontend/public/swagger-ui-bundle.js:39500–39537  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

39498 const na = _curry2(function equals(s, o) {
39499 return _equals(s, o, [], [])
39500 })
39501 function _includes(s, o) {
39502 return (
39503 (function _indexOf(s, o, i) {
39504 var a, u
39505 if ('function' == typeof s.indexOf)
39506 switch (typeof o) {
39507 case 'number':
39508 if (0 === o) {
39509 for (a = 1 / o; i < s.length; ) {
39510 if (0 === (u = s[i]) && 1 / u === a) return i
39511 i += 1
39512 }
39513 return -1
39514 }
39515 if (o != o) {
39516 for (; i < s.length; ) {
39517 if ('number' == typeof (u = s[i]) && u != u) return i
39518 i += 1
39519 }
39520 return -1
39521 }
39522 return s.indexOf(o, i)
39523 case 'string':
39524 case 'boolean':
39525 case 'function':
39526 case 'undefined':
39527 return s.indexOf(o, i)
39528 case 'object':
39529 if (null === o) return s.indexOf(o, i)
39530 }
39531 for (; i < s.length; ) {
39532 if (na(s[i], o)) return i
39533 i += 1
39534 }
39535 return -1
39536 })(o, s, 0) >= 0
39537 )
39538 }
39539 function _map(s, o) {
39540 for (var i = 0, a = o.length, u = Array(a); i < a; ) ((u[i] = s(o[i])), (i += 1))

Callers 2

iFunction · 0.85
hasOrAddFunction · 0.85

Calls 1

naFunction · 0.50

Tested by

no test coverage detected