MCPcopy Create free account
hub / github.com/6dylan6/jdm / __as

Method __as

function/magic.js:271–293  ·  view source on GitHub ↗
(es)

Source from the content-addressed store, hash-verified

269 }
270
271 __as(es) {
272 console.log(es)
273
274 let b = [];
275 for (let e of es) {
276 if (typeof e === 'string') {
277 let start = e.split('-')[0] * 1
278 let end = e.split('-')[1] * 1
279 if (end - start === 1) {
280 b.push(start)
281 b.push(end)
282 } else {
283 for (let i = start; i <= end; i++) {
284 b.push(i)
285 }
286 }
287 } else {
288 b.push(e)
289 }
290 }
291 console.log(b)
292 return b
293 }
294
295 deleteCookie() {
296 delete this.cookies[this.index - 1]

Callers 1

runMethod · 0.95

Calls 1

logMethod · 0.45

Tested by

no test coverage detected