Browse Source

Update boa/src/syntax/ast/op.rs

Co-Authored-By: Iban Eguia <razican@protonmail.ch>
pull/293/head
HalidOdat 5 years ago
parent
commit
9985dd934d
  1. 2
      boa/src/syntax/ast/op.rs

2
boa/src/syntax/ast/op.rs

@ -243,7 +243,7 @@ pub enum UnaryOp {
/// The `typeof` operator returns a string indicating the type of the unevaluated operand.
///
/// Syntax: `typeof expression` or `typeof(expression)`
/// Syntax: `typeof x` or `typeof(x)`
///
/// The `typeof` is a JavaScript keyword that will return the type of a variable when you call it.
/// You can use this to validate function parameters or check if variables are defined.

Loading…
Cancel
Save