<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Techy Things &#187; typescript</title>
	<atom:link href="https://tech.yipp.ca/category/typescript/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.yipp.ca</link>
	<description>Just another Yipp.ca Blogs site</description>
	<lastBuildDate>Thu, 01 May 2025 18:06:28 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.2.38</generator>
	<item>
		<title>RangeError: Invalid array length</title>
		<link>https://tech.yipp.ca/typescript/rangeerror-invalid-array-length/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=rangeerror-invalid-array-length</link>
		<comments>https://tech.yipp.ca/typescript/rangeerror-invalid-array-length/#comments</comments>
		<pubDate>Tue, 30 Apr 2024 14:21:18 +0000</pubDate>
		<dc:creator><![CDATA[frank]]></dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[typescript]]></category>

		<guid isPermaLink="false">http://tech.yipp.ca/?p=4438</guid>
		<description><![CDATA[<p>This can happen if the value is NaN. Solution : Check for isNaN(myvar) before trying to create an array form it with [...Array(myvar)]</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/typescript/rangeerror-invalid-array-length/">RangeError: Invalid array length</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><a href="http://tech.yipp.ca/files/2024/04/invalid-array-length.png"><img class="alignnone size-full wp-image-4439" src="http://tech.yipp.ca/files/2024/04/invalid-array-length.png" alt="invalid array length" width="990" height="480" /></a></p>
<p>This can happen if the value is NaN.</p>
<h3>Solution :</h3>
<p>Check for isNaN(myvar) before trying to create an array form it with [...Array(myvar)]</p>
<p>The post <a rel="nofollow" href="https://tech.yipp.ca/typescript/rangeerror-invalid-array-length/">RangeError: Invalid array length</a> appeared first on <a rel="nofollow" href="https://tech.yipp.ca">Techy Things</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://tech.yipp.ca/typescript/rangeerror-invalid-array-length/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
