@@ -1,2 +0,2 @@ | ||
| // Version 1.0.4 jerrypick - https://github.com/vasturiano/jerrypick | ||
| // Version 1.0.5 jerrypick - https://github.com/vasturiano/jerrypick | ||
| (function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
@@ -1,2 +0,2 @@ | ||
| // Version 1.0.4 jerrypick - https://github.com/vasturiano/jerrypick | ||
| // Version 1.0.5 jerrypick - https://github.com/vasturiano/jerrypick | ||
| !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).jerrypick={})}(this,(function(t){"use strict";function e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==r)return;var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}(t,e)||o(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}t.omit=function(t,o){var i=new Set(o);return Object.assign.apply(Object,[{}].concat(n(Object.entries(t).filter((function(t){var e=r(t,1)[0];return!i.has(e)})).map((function(t){var n=r(t,2);return e({},n[0],n[1])})))))},t.pluck=function(t,r){return Object.assign.apply(Object,[{}].concat(n(r.map((function(r){return e({},r,t[r])})))))},Object.defineProperty(t,"__esModule",{value:!0})})); |
+1
-1
| { | ||
| "name": "jerrypick", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "Pluck and omit properties from a JS object", | ||
@@ -5,0 +5,0 @@ "unpkg": "dist/jerrypick.min.js", |
+9
-9
@@ -6,3 +6,3 @@ jerrypick | ||
| [![Build Size][build-size-img]][build-size-url] | ||
| [![Dependencies][dependencies-img]][dependencies-url] | ||
| [![NPM Downloads][npm-downloads-img]][npm-downloads-url] | ||
@@ -16,11 +16,11 @@ Pluck and omit properties from a JS object. | ||
| ``` | ||
| ```js | ||
| import { pluck, omit } from 'jerrypick'; | ||
| ``` | ||
| or | ||
| ``` | ||
| ```js | ||
| const { pluck, omit } = require('jerrypick'); | ||
| ``` | ||
| or even | ||
| ``` | ||
| ```html | ||
| <script src="//unpkg.com/jerrypick"></script> | ||
@@ -31,3 +31,3 @@ ``` | ||
| ``` | ||
| ```js | ||
| const myObj = { | ||
@@ -51,7 +51,7 @@ a: 3, | ||
| [npm-img]: https://img.shields.io/npm/v/jerrypick.svg | ||
| [npm-img]: https://img.shields.io/npm/v/jerrypick | ||
| [npm-url]: https://npmjs.org/package/jerrypick | ||
| [build-size-img]: https://img.shields.io/bundlephobia/minzip/jerrypick.svg | ||
| [build-size-img]: https://img.shields.io/bundlephobia/minzip/jerrypick | ||
| [build-size-url]: https://bundlephobia.com/result?p=jerrypick | ||
| [dependencies-img]: https://img.shields.io/david/vasturiano/jerrypick.svg | ||
| [dependencies-url]: https://david-dm.org/vasturiano/jerrypick | ||
| [npm-downloads-img]: https://img.shields.io/npm/dt/jerrypick | ||
| [npm-downloads-url]: https://www.npmtrends.com/jerrypick |
17215
-0.08%