they are the closest we can get to this hashtable-like data structure without
ECMAScript Language Specification
explicitly states that:
The mechanics and order of enumerating the properties is not specified.
So don't use this for anything serious if you rely on the order to be consistent accross platforms.
A community initiative
php.js offers community built functions and goes by the
We’ll put online functions that aren't perfect, in the hopes to spark better contributions.
Do you have one? You can directly edit this file on GitHub, this will create a Pull Request that
the core team can review, and merge into our codebase.
This way of working also means that we don't offer any
production guarantees, and recommend to use php.js inspiration
and learning purposes only.
The second argument, sort_flags is not implemented;
also should be sorted (asort?) first according to docs