Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Created January 22, 2009 21:17
Show Gist options
  • Select an option

  • Save subtleGradient/50724 to your computer and use it in GitHub Desktop.

Select an option

Save subtleGradient/50724 to your computer and use it in GitHub Desktop.
Stupid Javascript tricks: self-chained function; Functional ASCii Art.js
function chained(){ console.log(arguments); return arguments.callee; };
chained(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(0);
var _=function(){return arguments.callee;};_._=_;
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
( _( _( _( _( _( _( _( _( _( _( _( _( _(
)._)._)._)._)._)._)._)._)._)._)._)._)._)
;this
['] ['] =_;this
['] ['] = this
['] ['] ;
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] ['] [']
;
function chained(){ console.log(arguments); return arguments.callee; };
chained(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment