Recent | Popular
#object #check #length
if(Object.keys(user).length > 0){ console.log('objec has values') }
#css #length #units
#javascript #length #number
function lenOfNum(num) { num = Math.abs(num) if(num < 10 && num >= 0){ return 1 } let len = 0 while(num > 1){ num = num / 10 len++ } return len }
Sun May 19 2024 04:03:24 GMT+0000 (Coordinated Universal Time)
Mon Oct 23 2023 06:00:40 GMT+0000 (Coordinated Universal Time) https://codesandbox.io/embed/length-units-mcilvb
Tue Jun 07 2022 14:26:35 GMT+0000 (Coordinated Universal Time)