Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xotic750/create-array-fix-x
Address Safari 10.1 array bug: https://bugs.webkit.org/show_bug.cgi?id=170264
https://github.com/xotic750/create-array-fix-x
array browser bugfix javascript nodejs opera
Last synced: 7 days ago
JSON representation
Address Safari 10.1 array bug: https://bugs.webkit.org/show_bug.cgi?id=170264
- Host: GitHub
- URL: https://github.com/xotic750/create-array-fix-x
- Owner: Xotic750
- License: mit
- Created: 2017-10-01T23:39:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-05T14:21:27.000Z (about 2 years ago)
- Last Synced: 2024-11-17T13:39:09.863Z (2 months ago)
- Topics: array, browser, bugfix, javascript, nodejs, opera
- Language: JavaScript
- Size: 231 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## create-array-fix-x
Address Safari 10.1 array bug: https://bugs.webkit.org/show_bug.cgi?id=170264**Version**: 0.1.0
**Author**: Xotic750
**License**: [MIT](<https://opensource.org/licenses/MIT>)
**Copyright**: Xotic750### `module.exports([parameters])` ⇒
Object
⏏
Address Safari 10.1 array bug: https://bugs.webkit.org/show_bug.cgi?id=170264**Kind**: Exported function
**Returns**:Object
- An array or array subclass if array is broken.| Param | Type | Description |
| --- | --- | --- |
| [parameters] |number
\|\*
| The construction parameters. |**Example**
```js
var createArray = require('create-array-fix-x');createArray(); // []
createArray(5); // [, , , , , ]
createArray(1, 2, 3, 4, 5); // [1, 2, 3, 4, 5]// adressed bug
var testArray = createArrayFix(0, 2147483648); // Note: the second number is greater than a signed 32bit int
testArray.shift(); // remove the first element so arr is [2147483648]
testArray[1] = 1; // Safari fails to add the new element and the array is unchanged
testArray; // [2147483648, 1]
```