Skip to content

Commit e07dba2

Browse files
committed
Change nully to nullish
1 parent e01900d commit e07dba2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function x(name, attributes) {
3232
for (attribute in attributes) {
3333
value = attributes[attribute]
3434

35-
// Ignore nully and NaN values.
35+
// Ignore nullish and NaN values.
3636
if (value !== null && value !== undefined && value === value) {
3737
attrs[attribute] = String(value)
3838
}

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Case sensitive and can contain a namespace prefix (such as `rdf:RDF`).
156156
###### `attributes`
157157

158158
Map of attributes (`Object.<*>`, optional).
159-
Nully (`null` or `undefined`) or `NaN` values are ignored, other values are
159+
Nullish (`null` or `undefined`) or `NaN` values are ignored, other values are
160160
turned to strings.
161161

162162
Cannot be omitted if `children` is a `Node`.

0 commit comments

Comments
 (0)