Skip to content

Commit

Permalink
Tag syntax code blocks with js-nolint, part 15 (#20627)
Browse files Browse the repository at this point in the history
Adding to #19177

- Updating syntax code blocks with the new tag. Refer: mdn/yari#7017
  • Loading branch information
OnkarRuikar authored Sep 13, 2022
1 parent d6ce8fc commit ce29091
Show file tree
Hide file tree
Showing 200 changed files with 206 additions and 206 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ it).
## Syntax

```js
```js-nolint
hasOwnProperty(prop)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`Object.is()`** method determines whether two values are [the same value](

## Syntax

```js
```js-nolint
Object.is(value1, value2)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ is extensible (whether it can have new properties added to it).

## Syntax

```js
```js-nolint
Object.isExtensible(obj)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`Object.isFrozen()`** determines if an object is

## Syntax

```js
```js-nolint
Object.isFrozen(obj)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ another object's prototype chain.
## Syntax

```js
```js-nolint
isPrototypeOf(object)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sealed.

## Syntax

```js
```js-nolint
Object.isSealed(obj)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ in the same order that a normal loop would.

## Syntax

```js
```js-nolint
Object.keys(obj)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`Object` constructor** turns the input into an object. Its behavior depend

## Syntax

```js
```js-nolint
new Object(value)
Object(value)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object). It also prevents the object's prototype from being re-assigned.

## Syntax

```js
```js-nolint
Object.preventExtensions(obj)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ property.

## Syntax

```js
```js-nolint
propertyIsEnumerable(prop)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The `__proto__` property can also be used in an object literal definition to set

## Syntax

```js
```js-nolint
obj.__proto__
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`Object.seal()`** method _seals_ an object. Sealing an object [prevents ex

## Syntax

```js
```js-nolint
Object.seal(obj)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The **`Object.setPrototypeOf()`** method sets the prototype (i.e., the internal
## Syntax

```js
```js-nolint
Object.setPrototypeOf(obj, prototype)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ purposes.

## Syntax

```js
```js-nolint
toLocaleString()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object.

## Syntax

```js
```js-nolint
toString()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ specified object.

## Syntax

```js
```js-nolint
valueOf()
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ chain as well.)

## Syntax

```js
```js-nolint
Object.values(obj)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ point number.

## Syntax

```js
```js-nolint
parseFloat(string)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ systems).

## Syntax

```js
```js-nolint
parseInt(string)
parseInt(string, radix)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ error, and will reject with this first rejection message / error.

## Syntax

```js
Promise.all(iterable);
```js-nolint
Promise.all(iterable)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ reject upon any of them rejecting.

## Syntax

```js
Promise.allSettled(iterable);
```js-nolint
Promise.allSettled(iterable)
```

### Parameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ browser-compat: javascript.builtins.Promise.any

## Syntax

```js
```js-nolint
Promise.any(iterable)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ deals with rejected cases only. It behaves the same as calling {{jsxref("Promise

## Syntax

```js
```js-nolint
p.catch(onRejected)
p.catch(function(reason) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This lets you avoid duplicating code in both the promise's {{jsxref("Promise/the

## Syntax

```js
```js-nolint
promise.finally(onFinally)
promise.finally(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`Promise`** constructor is primarily used to wrap functions that do not al

## Syntax

```js
```js-nolint
new Promise(executor)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ value or reason from that promise.

## Syntax

```js
```js-nolint
Promise.race(iterable)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`Promise.reject()`** method returns a

## Syntax

```js
```js-nolint
Promise.reject(reason)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This function flattens nested layers of promise-like objects (e.g. a promise tha

## Syntax

```js
```js-nolint
Promise.resolve(value)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`handler.apply()`** method is a trap for a function call.

## Syntax

```js
```js-nolint
new Proxy(target, {
apply(target, thisArg, argumentsList) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`handler.construct()`** method is a trap for the {{jsxref("Operators/new",

## Syntax

```js
```js-nolint
new Proxy(target, {
construct(target, argumentsList, newTarget) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`handler.defineProperty()`** method is a trap for

## Syntax

```js
```js-nolint
new Proxy(target, {
defineProperty(target, property, descriptor) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`handler.deleteProperty()`** method is a trap for the

## Syntax

```js
```js-nolint
new Proxy(target, {
deleteProperty(target, property) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ value.

## Syntax

```js
```js-nolint
new Proxy(target, {
get(target, property, receiver) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`handler.getOwnPropertyDescriptor()`** method is a trap for {{jsxref("Obje

## Syntax

```js
```js-nolint
new Proxy(target, {
getOwnPropertyDescriptor(target, prop) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`handler.getPrototypeOf()`** method is a trap for the

## Syntax

```js
```js-nolint
new Proxy(obj, {
getPrototypeOf(target) {
// …
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`handler.has()`** method is a trap for the

## Syntax

```js
```js-nolint
new Proxy(target, {
has(target, prop) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ The **`Proxy()`** constructor is used to create

## Syntax

```js
```js-nolint
new Proxy(target, handler)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`handler.isExtensible()`** method is a trap for

## Syntax

```js
```js-nolint
new Proxy(target, {
isExtensible(target) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The **`handler.ownKeys()`** method is a trap for

## Syntax

```js
```js-nolint
new Proxy(target, {
ownKeys(target) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The **`handler.preventExtensions()`** method is a trap for {{jsxref("Object.prev

## Syntax

```js
```js-nolint
new Proxy(target, {
preventExtensions(target) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ value.

## Syntax

```js
```js-nolint
new Proxy(target, {
set(target, property, value, receiver) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The **`handler.setPrototypeOf()`** method is a trap for

## Syntax

```js
```js-nolint
new Proxy(target, {
setPrototypeOf(target, prototype) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ revocable {{jsxref("Proxy")}} object.

## Syntax

```js
Proxy.revocable(target, handler);
```js-nolint
Proxy.revocable(target, handler)
```

### Parameters
Expand Down
Loading

0 comments on commit ce29091

Please sign in to comment.