Coder Social home page Coder Social logo

nested-property's People

Contributors

alan-cha avatar dependabot[bot] avatar igor-barbosa avatar nilz11 avatar podefr avatar stefanorie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nested-property's Issues

Possible introduction for array wildcards?

If I have an array:

{
   emails: [
      {
         path1: "a",
         delPath: "[email protected]"
       },
      {
         path1: "b",
         delPath: "[email protected]"
      },
      ...
   ]
}

I think it would be useful to be able to use wildcards like the following:

nestedProperty.set(obj, 'emails.*.delPath', undefined)

OR

nestedProperty.set(obj, 'emails.$.delPath', undefined)

Which would essentially grab all items in the array and end up like this

{
   emails: [
      {
         path1: "a",
         delPath: undefined
       },
      {
         path1: "b",
         delPath: undefined
      },
      ...
   ]
}

CHANGELOG or Release notes?

Hi, wondering if you'd consider adding a changelog or release notes, so one could track changes in an easier manner. This would make it easier to upgrade versions of nested-property as you could most likely list breaking changes in the notes as well.

What do you think?

Allow negative array index to count backwards from the end

We should be able to use negative indexes when setting/getting array values to calculate the position from the end of the array. For example, -1 would be the last item in the array. I tried doing this but it doesn't seem to work currently.

Npm license profile is NONE

Hello,
want to publish the package to company artifactory but license check fails even the 'licenses' key are set in package.json. Noticed, package's npm profile show NONE for license.I guess that npm doesn't recognize the 'licenses' key in the package.json.
Changing the key to: "license": "MIT" would possibly solve this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.