"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/is-property/README.md" (17 Oct 2016, 625 Bytes) of archive /windows/misc/atom-windows.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.


Tests if a property of a JavaScript object can be accessed using the dot (.) notation or if it must be enclosed in brackets, (ie use x[“ … ”])


```javascript var isProperty = require(“is-property”)

console.log(isProperty(“foo”)) //Prints true console.log(isProperty(“0”)) //Prints false ```


npm install is-property


Checks if str is a property

Returns true or false depending if str is a property


© 2013 Mikola Lysenko. MIT License