Skip to content

FunctionData.then()

paige edited this page Nov 17, 2023 · 1 revision

adds a new listener for when the data finishes pending
type: Function

arguments:

  • callback Function
    callback for the listener
    fired off when the data finishes pending

JS
const fndt = require('fndt');


function test(a, b="placeholder") {       
    console.log(a, b);
}


let fd = fndt.fetch(test);


fd.then((data) => {
    console.log(data);
});


fndt docs

πŸ›ˆ FunctionData

πŸ›ˆ fetch()

πŸ›ˆ fetchSync()

Clone this wiki locally