LZW compression: Difference between revisions

→‎{{header|JavaScript}}: ...so don't use an Array.
m (→‎{{header|JavaScript}}: Noted JS Array limitation)
(→‎{{header|JavaScript}}: ...so don't use an Array.)
Line 364:
 
=={{header|JavaScript}}==
This implementation fails if it attempts to match the name of any native or extended method of the Array object.
<lang javascript>
//LZW Compression/Decompression for Strings
Line 372 ⟶ 371:
// Build the dictionary.
var dictSize = 256;
var dictionary = []{};
for (var i = 0; i < 256; i++)
{
Anonymous user