Skip to content

Commit 5b8579f

Browse files
committed
Edited ch07.asciidoc with Atlas code editor
1 parent b43c923 commit 5b8579f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch07.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Number.isFinite('10')
177177
// <- false, because '10' is not a number
178178
----
179179

180-
Creating a ponyfillpass:[<span data-type="footnote" id="ponyfills">Like polyfills, <a href="https://mjavascript.com/out/ponyfills">ponyfills</a> are user-land implementations of features that aren't available in every JavaScript runtime. While polyfills try to patch the runtime environment so that it behaves as if the feature was indeed available on the runtime, ponyfills implement the missing functionality as standalone modules that don't pollute the runtime environment. This has the benefit of not breaking expectations third-party libraries (that don't know about your polyfill) may have about the environment.</span>] for `Number.isFinite` would involve returning `false` for nonnumeric values, effectively turning off the type-casting feature, and then calling `isFinite` on the input ((("Number.isFinite", startref="nisf7")))value.
180+
Creating a ponyfill for `Number.isFinite` would involve returning `false` for nonnumeric values, effectively turning off the type-casting feature, and then calling `isFinite` on the input ((("Number.isFinite", startref="nisf7")))value.
181181

182182
[source,javascript]
183183
----

0 commit comments

Comments
 (0)