Skip to content

Commit

Permalink
2024/07/26 時点の英語版に基づき更新
Browse files Browse the repository at this point in the history
  • Loading branch information
mfuji09 committed Oct 5, 2024
1 parent cc060ee commit 98f3860
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Array.from()
slug: Web/JavaScript/Reference/Global_Objects/Array/from
l10n:
sourceCommit: fb85334ffa4a2c88d209b1074909bee0e0abd57a
sourceCommit: 8421c0cd94fa5aa237c833ac6d24885edbc7d721
---

{{JSRef}}
Expand Down Expand Up @@ -171,7 +171,7 @@ console.log(Array.from.call(NotArray, { length: 1, 0: "foo" }));
// NotArray { '0': 'foo', length: 1 }
```

`this` の値がコンストラクタでない場合は、プレーンな `Array` オブジェクトを返します。
`this` の値がコンストラクターでない場合は、プレーンな `Array` オブジェクトを返します。

```js
console.log(Array.from.call({}, { length: 1, 0: "foo" })); // [ 'foo' ]
Expand Down

0 comments on commit 98f3860

Please sign in to comment.