0.0.1 • Published 10 years ago

argsarray v0.0.1

Weekly downloads
150,601
License
WTFPL
Repository
github
Last release
10 years ago

args array Build Status

npm install argsarray

simple library to treat function arguments as an array without leaking the arguments object (which is bad), based on something I wrote for PouchDB.

Simple wrap a function in this and the function will always be called with an array of the arguments it was called with.

var myFunc = argsarray(function myFunc(args) {
  console.log(args);
});

myFunc(a, b, c);
//[a, b, c];

#license

wtfpl

pouchdb-browser-sapperrn-pdf-reader-offline@skylib/fix-pouchdbreact-native-slider-kf@infinitebrahmanuniverse/nolb-arg@everything-registry/sub-chunk-1162localstorage-chromelocalstorage-downjulien76-pouchdb-replication-streamns-pouchdbfruitdownfilter-pouchfsdownpouchdb-web-workerpouchdb.mapreduce.noevalpouchdb-stablepouchdb-sveltepouchdb-topromisepouchdb-utils-sapperpouchdb-persistpouchdb-quick-searchpouchdb-quick-search-curltechpouchdb-quick-search-koreanpouchdb-quick-search4curltechpouchdb-quorumpouchdb-replication-streampouchdb-sapperpouchdb-observepouchdb-loadpouchdb-lru-cachepouchdb-mapreduce-utils-sapperpouchdb-mcprcek_pouchdbpouchdb-adapters-rnpouchdb-all-dbspouchdb-asyncstorage-downpouchdb-browser-levelpouchdb-browser-mcpouchdb-adapter-http-react-nativepouchdb-adapter-leveldb-core-rnpouchdb-adapter-react-native-levelpouch-datalogpouch-remote-streamrxdb-adapter-localstoragesessionstorage-down@guarda-co/pouchdb@guarda-co/pouchdb-adapter-http@guarda-co/pouchdb-adapter-leveldb-core@guarda-co/pouchdb-browser@guarda-co/pouchdb-core@guarda-co/pouchdb-mapreduce-utils@guarda-co/pouchdb-node@guarda-co/pouchdb-utils@hellomouse/pouchdb@expo/websql@jurassix/pouchdb-adapter-http-react-nativewebsqlwebsql-configurableworker-pouchsocket-pouchsocket-pouchdbsiesta-orm@mrizki/pouchdb-core@nowarzz/pouchdb-adapters-rn@manuscripts/pouchdb-adapter-http@movilizame/relational-pouch@the-t-in-rtf/pouchdb-all-dbs@prescrire/pouchdb-load@prescrire/pouchdb-replication-stream@rasgo/pouchdb-find@rasgo/pouchdb-mapreduce-utils@rasgo/pouchdb-node@rasgo/pouchdb-replication@rasgo/pouchdb-utils@rasgo/pouchdb@rasgo/pouchdb-adapter-http@rasgo/pouchdb-adapter-idb@rasgo/pouchdb-adapter-leveldb@rasgo/pouchdb-adapter-leveldb-core@rasgo/pouchdb-adapter-localstorage@rasgo/pouchdb-adapter-memory@rasgo/pouchdb-adapter-utils@rasgo/pouchdb-browser@rasgo/pouchdb-core@staltz/asyncstorage-down@agilitysciences/pouchdbasyncstorage-downchromestorage-down@budibase/pouchdb-replication-stream@bnbwebexpertise/pouchdb@conglomerate/weaver@cyphercider/pouchdb-fulltext-search@cliqz-oss/pouchdb@craftzdog/transform-pouch@craftzdog/pouchdb-core-react-nativedebug-websql
0.0.1

10 years ago