Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Modern Javascript: Everything you missed over the last 10 years (2020). Parent comment
Let me give you one example:
Lets say you want to validate if a string is a valid URL. What is a good way to do this in JS?
Just for reference in Ruby for example I can do:
URI.parse(input).kind_of?(URI::HTTP)
Seems like JS standard library is better than I thought.
Let me give you one example:
Lets say you want to validate if a string is a valid URL. What is a good way to do this in JS?
Just for reference in Ruby for example I can do:
No gems or any other engines needed.