Skip to main content
added 49 characters in body
Source Link
Shieru Asakoto
  • 6.5k
  • 19
  • 44

JavaScript (Node.js), 7070 69 bytes

-1 Thanks @Shaggy for the splice() idea.

(a,x,y,w,h)=>a.split` `.map(q=>q.substr(x-1,w)).slicesplice(--y,y+hh).join` ` 

Try it online!Try it online!

The ASCII art given is annoying tbh

JavaScript (Node.js), 70 bytes

(a,x,y,w,h)=>a.split` `.map(q=>q.substr(x-1,w)).slice(--y,y+h).join` ` 

Try it online!

The ASCII art given is annoying tbh

JavaScript (Node.js), 70 69 bytes

-1 Thanks @Shaggy for the splice() idea.

(a,x,y,w,h)=>a.split` `.map(q=>q.substr(x-1,w)).splice(--y,h).join` ` 

Try it online!

The ASCII art given is annoying tbh

Source Link
Shieru Asakoto
  • 6.5k
  • 19
  • 44

JavaScript (Node.js), 70 bytes

(a,x,y,w,h)=>a.split` `.map(q=>q.substr(x-1,w)).slice(--y,y+h).join` ` 

Try it online!

The ASCII art given is annoying tbh