delete-property

WebJar for delete-property

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

delete-property
Последняя версия

Последняя версия

0.0.4
Дата

Дата

Тип

Тип

jar
Описание

Описание

delete-property
WebJar for delete-property
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/rahatarmanahmed/delete-property

Скачать delete-property

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/delete-property/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>delete-property</artifactId>
    <version>0.0.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/delete-property/
implementation 'org.webjars.npm:delete-property:0.0.4'
// https://jarcasting.com/artifacts/org.webjars.npm/delete-property/
implementation ("org.webjars.npm:delete-property:0.0.4")
'org.webjars.npm:delete-property:jar:0.0.4'
<dependency org="org.webjars.npm" name="delete-property" rev="0.0.4">
  <artifact name="delete-property" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='delete-property', version='0.0.4')
)
libraryDependencies += "org.webjars.npm" % "delete-property" % "0.0.4"
[org.webjars.npm/delete-property "0.0.4"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : lodash.property jar [4.0.0,5)

Модули Проекта

Данный проект не имеет модулей.

DEPRECATED: Use Lodash's unset method instead

This module will still work but I will no longer maintain it since lodash implements it.

delete-property Build Status

Deletes a deeply nested object property. Returns true if successfully deleted. Returns false if property doesn't exist or if the passed in argument is not an object.

Installing

npm install delete-property

Example usage

var deleteProperty = require('delete-property');
var obj = {
    n: {
        p: {
            m: true
        }
    }  
};

var deleteNPM = deleteProperty('n.p.m');
console.log(deleteNPM(obj)); // true
console.log(obj.n.p.hasOwnProperty('m')); // false

// Tryin to delete something that ain't exist? You rascal..

var deleteSuckIt = deleteProperty('suck.it');
console.log(deleteSuckIt(obj)) // false
console.log(deleteSuckIt(undefined)) // false
console.log(deleteSuckIt(null)) // false
console.log(deleteSuckIt(69)) // false
console.log(deleteSuckIt('god damn it')) // false

Версии библиотеки

Версия
0.0.4