Opened page and saw the animation
function nameLength(name){ return name.length }
Rather than
const nameLength = (name) => name.length
This is already enough for me not to bother looking.
function nameLength(name){ return name.length }
Rather than
const nameLength = (name) => name.length
This is already enough for me not to bother looking.
It is unnecessary to adopt a naming convention which implies a scope within the context of "names" when the method is compatible with all strings.
Going full functional style could possibly be used.
const length = prop('length')