smart-map

Map function over an array if input is an array, otherwise apply the function normally.

Usage no npm install needed!

<script type="module">
  import smartMap from 'https://cdn.skypack.dev/smart-map';
</script>

README