View replaceHole.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Javascript-hole-in-array | |
Javascript holes in array or array with holes, how to iterate, detect, replace, and delete | |
['a',,'c'] is NOT SAME as ['a',undefined,'c'] | |
For better view please check: | |
https://github.com/rambkk/Javascript-hole-in-array | |
github rambkk - pluslab.net - looking for impossible projects |
View PHP-array_reduce,findIndex,findIndexes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* PHP array_reduce_key (v0.11) - array_reduce with additional parameters | |
* array_reduce with key, | |
* (javascript like reduce method) | |
* (if initial value of carry is not specified, null is used) | |
* | |
* PHP array_reduce_JS (v0.12) - array_reduce with additional parameters | |
* (javascript like reduce method) | |
* if initial value of carry is not specified, first item of input ARRAY is used, and CALLBACK starts on the second item |