what does initValidation.validate mean?

why are we calling initValidation() and where is initValidation.validate stored ?

    function initValidation()
    {
        // irrelevant code here
        function validate(_block){
            console.log( "test", _block );
        }
    
        initValidation.validate = validate;
    }

    initValidation();
    initValidation.validate( "hello" );

18 thoughts on “what does initValidation.validate mean?”

Leave a Comment