Skip to content

Javascript knowledge

RaghuJRama edited this page Jan 4, 2019 · 1 revision

Check all characters are numeric in String

  • Not starting with 0
function isAllCharactersAreNumeric(value) {
	return /^[1-9]\d*$/.test(value);
}

Remove a property from an object

delete users[i].isAdmin
Clone this wiki locally