Tuesday, 20 August 2019

javascript - If object array has x parameter

I have object array:



obj = {
name : "john doe",
phone : "123456789"
};



I want to check if there is an "email" parameter.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...