solidity-array-utils

Array utils for Solidity.

Usage no npm install needed!

<script type="module">
  import solidityArrayUtils from 'https://cdn.skypack.dev/solidity-array-utils';
</script>

README

Array Utils

Utility functions for arrays.

Supported types:

  • address[]

Documentation

Address

index

Searches for provided address starting from the left and returns the index and ok.

extend

Merges two arrays. Mutates the first array.

reverse

Reverses the order of the array.