I\'m developing a website in Angular 2 using Typescript and I was wondering if there was a way to implement thread.sleep(ms) functionality.
thread.sleep(ms)
My use case
Or rather than to declare a function, simply:
setTimeout(() => { console.log('hello'); }, 1000);