Title:
Array with number vs Typed Array where the type is number
|
View in Portal
<p>I have the following code <cfscript> data = [‘2342bas’, ‘asqwerewq’, ‘12314’, 12421, 1.1]; newdata = arrayNew[‘Numeric’](1); for (item in data) { newdata.append(val(item)); } writedump(newdata); newdata = []; for (item in data) { newdata.append(val(item)); } writedump(newdata); </cfscript> This result in Not sure this is wrong, but it is interesting</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2019/10/array-number-vs-typed-array-type-number/">Array with number vs Typed Array where the type is number</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Comments: