Merge pull request #7999 from chrootsu/lodash-unset

lodash: changed _.unset
This commit is contained in:
Masahiro Wakame
2016-02-11 22:56:22 +09:00
2 changed files with 59 additions and 15 deletions
+31 -15
View File
@@ -5295,21 +5295,6 @@ declare module _ {
): any[];
}
//_.unset
interface LoDashStatic {
/**
* Removes the property at path of object.
*
* @param object The object to modify.
* @param path The path of the property to unset.
* @return Returns true if the property is deleted, else false.
*/
unset<T>(
object: T,
path: StringRepresentable | StringRepresentable[]
): boolean;
}
//_.unzip
interface LoDashStatic {
/**
@@ -15922,6 +15907,37 @@ declare module _ {
): LoDashImplicitArrayWrapper<TResult>;
}
//_.unset
interface LoDashStatic {
/**
* Removes the property at path of object.
*
* Note: This method mutates object.
*
* @param object The object to modify.
* @param path The path of the property to unset.
* @return Returns true if the property is deleted, else false.
*/
unset<T>(
object: T,
path: StringRepresentable|StringRepresentable[]
): boolean;
}
interface LoDashImplicitObjectWrapper<T> {
/**
* @see _.unset
*/
unset(path: StringRepresentable|StringRepresentable[]): LoDashImplicitWrapper<boolean>;
}
interface LoDashExplicitObjectWrapper<T> {
/**
* @see _.unset
*/
unset(path: StringRepresentable|StringRepresentable[]): LoDashExplicitWrapper<boolean>;
}
//_.values
interface LoDashStatic {
/**