Skip to content

Cimorexave/create-custom-method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

How to use

it's Simple:

import createMethod from "create-custom-method"
createMethod(source, "print", () => {
    console.log("source: " + source)
})

source is the variable that you want to add your method to. The second argument is what is the name of your method will be and the last argument is your method function. It can be either a callback function or not!

About

create your own custom method on your local array, object, string or number!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published