-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added the Array and Hash
.fetch()
methods to fetch a value with a…
… default value. Example: var a = [3,9,27] say a.fetch(2, 42); # fetches index 2 and prints: 27 say a.fetch(3, 42); # fails to fecth index 3, therefore prints: 42
- Loading branch information
trizen
committed
Nov 23, 2015
1 parent
451f169
commit 5edff8a
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
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
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