{"_id":"max-component","_rev":"68401","name":"max-component","description":"Max value utility","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2021-06-03T10:22:41.000Z","created":"2012-11-28T23:24:32.740Z","1.0.0":"2012-11-28T23:24:32.740Z"},"users":{},"versions":{"1.0.0":{"name":"max-component","version":"1.0.0","dependencies":{"to-function":"*"},"devDependencies":{"mocha":"*","should":"*"},"component":{"scripts":{"max":"index.js"}},"readmeFilename":"Readme.md","_id":"max-component@1.0.0","description":"Max value utility","dist":{"shasum":"002cb025dc5913f08cf23ba42c158980698d16d5","size":1357,"noattachment":false,"key":"/max-component/-/max-component-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/max-component/download/max-component-1.0.0.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{},"publish_time":1354145072740,"_cnpm_publish_time":1354145072740,"_hasShrinkwrap":false}},"readme":"\n# max\n\n  Max value utility\n\n## Installation\n\n    $ component install component/max\n\n## API\n\n### max(array)\n\n  Return the max value in `array`:\n\n```js\nmax([1,5,6,1,2,0])\n```\n\n### max(array, fn)\n\n  Max value in `array` with callback `fn(val, i)`:\n\n```js\nvar age = max(users, function(u){ return u.age })\n```\n\n### max(array, string)\n\n  Max value in `array` with the given property `string`:\n\n```js\nvar age = max(users, 'age')\n```\n\n# License\n\n  MIT\n","_attachments":{},"readmeFilename":"Readme.md"}