advise

1.0.0 • Public • Published

advise.js

More docs to come...

Advise Math

var advisor = advise(Math);
advisor.before('pow', function (x, y) {
  // return an array, gets used as the arguments to the function
  return [* 2, y * 2];
});
 
advisor.after('pow', function (result) {
  // do something with the return value of the operation.
  console.log(result)
})

Advise jQuery

advise(jQuery).before('ajax', function (settings) {
  if (!settings.token) settings.token = getToken();
});

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i advise

    Weekly Downloads

    3

    Version

    1.0.0

    License

    none

    Last publish

    Collaborators

    • ryanflorence