Denis Efremov
Denis Efremov
@coffeeDev98 this library is the engine which takes chess moves one by one and shows to you possible moves after each your move. Also, it detects the state of chess...
```js const nodes = document.getElementsByTagName('h4') const types = Array.from(nodes).filter((node) => node.innerText.match(/^(?:[A-Z][a-z]+)+$/)) const methods = Array.from(nodes).filter((node) => node.innerText.match(/^[a-z]+(?:[A-Z][a-z]+)+$/)) types.map((el) => { let comment = '' let props = '' let next...
```js let el = document.getElementById('telegram-passport').parentElement let code = [] let cls = '' while (el.nextElementSibling && el.nextElementSibling.tagName !== 'H3') { if (el.nextElementSibling.tagName === 'H4') { cls = cls + `class...
Second version ```js el = document.getElementById('telegram-passport').parentElement code = [] cls = '' while (el.nextElementSibling && el.nextElementSibling.tagName !== 'H3') { if (el.nextElementSibling.tagName === 'H4') { cls = cls + `class ${el.nextElementSibling.innerText}`...
Version 3. Sova, please finish this shit... ```js el = document.getElementById('telegram-passport').parentElement code = [] cls = '' while (el.nextElementSibling && el.nextElementSibling.tagName !== 'H3') { if (el.nextElementSibling.tagName === 'H4') { cls...
Could you imagine this? ```js document.querySelectorAll('h3').forEach((el) => { const code = [] let cls = '' let comment = [] while (el.nextElementSibling) { if (el.nextElementSibling.tagName === 'H4') { cls =...
А за что кикать?
\`\`\`js ```js pipes: { result: vm => vm.twoPipe.flatMap(two => vm.fixRandomPipe.map(r => two * r)), fixRandom: vm => 42, two: vm => vm.onePipe.map(one => one + 1), one: vm => 1...
:magic:
So, check this out now)