0.0.1 • Published 11 years ago

argsarray v0.0.1

Weekly downloads
150,601
License
WTFPL
Repository
github
Last release
11 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-1162websqlwebsql-configurableworker-pouchsessionstorage-downpouchdb-observelocalstorage-chromelocalstorage-downjulien76-pouchdb-replication-streamprcek_pouchdbpouchdb-utils-sapperpouchdb-web-workerpouchdb.mapreduce.noevalpouchdb-stablepouchdb-sveltepouchdb-topromisepouchdb-adapter-http-react-nativepouchdb-adapter-leveldb-core-rnpouch-datalogpouchdb-asyncstorage-downpouchdb-browser-levelpouchdb-browser-mcpouchdb-adapter-react-native-levelpouchdb-adapters-rnpouchdb-all-dbspouch-remote-streampouchdb-persistpouchdb-quick-searchpouchdb-quick-search-curltechpouchdb-quick-search-koreanpouchdb-lru-cachepouchdb-mapreduce-utils-sapperpouchdb-mcpouchdb-quick-search4curltechpouchdb-quorumpouchdb-replication-streampouchdb-loadpouchdb-sapperns-pouchdbrxdb-adapter-localstoragesocket-pouchsocket-pouchdbsiesta-ormsocket.io-pouch@agilitysciences/pouchdb@bnbwebexpertise/pouchdb@cliqz-oss/pouchdb@guarda-co/pouchdb-core@guarda-co/pouchdb-mapreduce-utils@guarda-co/pouchdb-node@guarda-co/pouchdb-utils@guarda-co/pouchdb@guarda-co/pouchdb-adapter-http@guarda-co/pouchdb-adapter-leveldb-core@guarda-co/pouchdb-browser@hellomouse/pouchdb@manuscripts/pouchdb-adapter-http@mrizki/pouchdb-core@movilizame/relational-pouch@expo/websql@jurassix/pouchdb-adapter-http-react-native@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@rasgo/pouchdb-find@rasgo/pouchdb-mapreduce-utils@rasgo/pouchdb-node@rasgo/pouchdb-replication@rasgo/pouchdb-utils@prescrire/pouchdb-load@prescrire/pouchdb-replication-stream@nowarzz/pouchdb-adapters-rn@staltz/asyncstorage-down@craftzdog/pouchdb-core-react-native@craftzdog/transform-pouch@cyphercider/pouchdb-fulltext-search@conglomerate/weaver@the-t-in-rtf/pouchdb-all-dbsfilter-pouchfsdownfruitdownasyncstorage-downchromestorage-downdebug-websql
0.0.1

11 years ago