Created
November 6, 2019 12:32
-
-
Save DanShappir/cdb7d4de66ef3ca2339c0722e92709fe to your computer and use it in GitHub Desktop.
Simple head function
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 head(src) { | |
for (const value of src) { | |
return value; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment