Created
August 6, 2020 12:39
-
-
Save dan-laskowski/8f17706579ebd05a12071778e651f224 to your computer and use it in GitHub Desktop.
[Additive Inverse] #arrays #math #map #loops
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
function additiveInverse(arr) { | |
return arr.map(x => -x); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment