JavaScript in Depth
JavaScript: Check Property Existence
By Xah Lee. Date:
2013-11-19
. Last updated:
2019-05-01
.
Check If a Object Has Own Property
Object.prototype.hasOwnProperty
Check If a Property is in Prototype Chain
Reflect.has
βinβ Operator
JavaScript Property
Property Overview
Property Key
Dot vs Bracket Notation
Create/Delete Property
Get/Set Property
Property Existence
Access Property
List Properties
for-in Loop
Property Attributes
Getter/Setter
Property Descriptor
BUY
Ξ£JS
JavaScript in Depth
Search π
HTML
CSS
JS
JS Ref
DOM
SVG
JavaScript in Depth
Basic Syntax
How to Run JavaScript
JavaScript Basics
Quote String
Operators
true/false
Equality
Branch Control
Loop
Array Basics
Object Basics
Value Types
Value Types
Primitive Value
typeof
Variable
let π
const π
var π
Global Variable
Destructure Assignment π
String
String Overview
Template String π
Code Unit, Codepoint
Function
Define Function
Arrow Function π
Function Params
arguments Object
Rest Params π
Arg Default Value π
Arg Destructure π
f Declaration vs Expr
Closure
f call apply bind
Functional Programing
Pipe Functions π
Property
Property Overview
Property Key
Dot vs Bracket Notation
Create/Delete Property
Get/Set Property
Property Existence
Access Property
List Properties
for-in Loop
Property Attributes
Getter/Setter
Property Descriptor
Symbol
Object and Inheritance
Object Overview
Object Type
Find Object's Type
Parent Chain
Is in Parent Chain?
Get/Set Parent
Show Parent Chain π
Create Object
Object Literal Expr
Create Object + Parent
Prevent Adding Property
Clone Object π
Test Object Equality π
Add Method to Prototype π
Array
Array Overview
Create Array
Sparse Array
Array-Like Object
Array Equality π
Array How-To π
Constructor/Class
this Binding
What is Constructor
Property Key "prototype"
Operator βnewβ
Operator βinstanceofβ
Property Key βconstructorβ
Class π
Keyword βextendsβ π
Keyword βsuperβ π
Iterable π
Interface
Iterable
Iterator
Iterator Prototype
for-of Loop
Spread Operator
Generator
Generator Function
Misc
Regular Expression
Date
Set π
Map π
Import/Export π
Promise π
Proxy π
Convert String/Number
Try Catch Throw Finally
JS2015 Features
JS2016 to JS2020
How to Convert to JS2015
Style Guide
Semicolon Rules
Exclamation Before Function
How to Determine Strict Mode?
x.y.z Associativity
Timing JS Code
Allowed Characters in Identifier
Source Code Encoding