Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package utils {
- /**
- * The identity function. Returns whatever it is passed.
- * >>> identity(42)
- * 42
- * >>> map(identity, [ null, undefined, {} ])
- * [ null, undefined, {} ]
- * >>>
- */
- public function identity(arg:*):* {
- return arg;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement