JSFiddle - React, Tailwind, and code Playground

JavaScript

alert('1.0.0.0'.split('.').map(function(s) {
  return parseInt(s);
}))