Quick actions

cmd+k|ctrl+k

Navigation

Languages

library test

Snippet info

Language

JavaScript

Visibility

public

Author

horacio

Created

2016-04-26T06:48:38Z

Updated

2016-04-26T06:48:38Z

var Lib = (function(){
    
    function _private(){
        console.log('private function!');
    }
    var lib = {
        test: function(){
            _private();
            return this;
        },
        other: function(){
            console.log('other test!');
            return this;
        }
    }
    return lib;
})();

Lib
    .test()
    .other();
INFO