UNPKG

cli-chain

Version:

chainable cli creation, minimal, interactive, powerful.

30 lines (27 loc) 680 B
// const abc = 'abcdefghijklmnopqrstuvwxyz' // ui.updateBottomBar('-> to show data') // let i = 0 // setInterval(() => { // if (i >= abc.length) i = 0 // i++ // ui.updateBottomBar(abc[i]) // }, 300) // return this // console.log({ // key, // l: key.length, // t: key == '', // tt: key === ' ', // i: key.includes(' '), // ii: key == ' ', // s: JSON.stringify(key) == JSON.stringify(' '), // ss: JSON.stringify(key) == JSON.stringify(''), // sss: key == '', // }) this.matchingSessions = this.sessions .slice(0) .map(session => { const hash = JSON.stringify(session.steps) return {session, hash} }) .filter(({hash}) => hash === stepsStr)