You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ npm test # if skeptical
21
21
22
22
## Usage
23
23
24
-
The npm package exports a single function called `tuple`, both as a `default` export and as an equivalent named export, so all of the following import styles will work:
24
+
This package exports a single function called `tuple`, both as a `default` export and as an equivalent named export, so all of the following import styles will work:
Although the `tuple` function can be invoked using `new tuple(...)` syntax, using `new` is not recommended, since the new object will simply be thrown away.
49
+
48
50
### Own `tuple` properties
49
51
50
52
The `tuple` object has a fixed numeric `.length` property, and its elements may be accessed using array index notation:
0 commit comments