Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Null check

function exists (value) {
  return x != null ? Promise.resolve(value) : Promise.reject(`Invalid value: ${value}`)
}
 
PREVIOUS NEXT
Tagged: #Null #check
ADD COMMENT
Topic
Name
1+7 =