Well, I like base2 approach - there is a generic K factory-function which is used to define other "helpers":
function K(k) { return function() { return k; } } True = K(true); False = K(false); Undefined = K(); ... - kangax On May 3, 10:15 pm, John-David Dalton <[EMAIL PROTECTED]> wrote: > I think kangax used to have something similar in > his:http://github.com/kangax/protolicious/tree/master/helpers.js > > Though I cannot seem to find it now :) > > - JDD --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---