MCPcopy
hub / github.com/fanmingming/live / isValidArrayIndex

Function isValidArrayIndex

m3u8/vue.js:79–82  ·  view source on GitHub ↗

* Check if val is a valid array index.

(val)

Source from the content-addressed store, hash-verified

77 * Check if val is a valid array index.
78 */
79 function isValidArrayIndex (val) {
80 var n = parseFloat(String(val));
81 return n >= 0 && Math.floor(n) === n && isFinite(val)
82 }
83
84 function isPromise (val) {
85 return (

Callers 2

setFunction · 0.85
delFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected