@inrupt/solid-client / thing/remove
Module: thing/remove#
Type Aliases#
RemoveOfType#
Ƭ RemoveOfType<Type
>: <T>(thing
: T
, property
: Url
| UrlString
, value
: Type
) => T
Type parameters#
Name |
---|
|
Type declaration#
▸ <T
>(thing
, property
, value
): T
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a value from. |
|
Property for which to remove the given value. |
|
|
|
Value to remove from |
Returns#
T
Defined in#
Functions#
removeAll#
▸ removeAll<T
>(thing
, property
): T
Create a new Thing with all values removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
[[Thing]] to remove values from. |
|
|
Property for which to remove all values from the Thing. |
Returns#
T
A new Thing equal to the input Thing with all values removed for the given Property.
Defined in#
removeBoolean#
▸ removeBoolean<T
>(thing
, property
, value
): T
Create a new Thing with the given boolean removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a boolean value from. |
|
|
Property for which to remove the given boolean value. |
|
|
Boolean to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
removeDate#
▸ removeDate<T
>(thing
, property
, value
): T
Create a new Thing with the given date removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a date value from. |
|
|
Property for which to remove the given date value. |
|
|
Date to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Since
1.10.0
Defined in#
removeDatetime#
▸ removeDatetime<T
>(thing
, property
, value
): T
Create a new Thing with the given datetime removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a datetime value from. |
|
|
Property for which to remove the given datetime value. |
|
|
Datetime to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
removeDecimal#
▸ removeDecimal<T
>(thing
, property
, value
): T
Create a new Thing with the given decimal removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a decimal value from. |
|
|
Property for which to remove the given decimal value. |
|
|
Decimal to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
removeInteger#
▸ removeInteger<T
>(thing
, property
, value
): T
Create a new Thing with the given integer removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove an integer value from. |
|
|
Property for which to remove the given integer value. |
|
|
Integer to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
removeStringEnglish#
▸ removeStringEnglish<T
>(thing
, property
, value
): T
Create a new Thing with the given English string removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a localised string value from. |
|
|
Property for which to remove the given localised string value. |
|
|
String to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Since
1.13.0
Defined in#
removeStringNoLocale#
▸ removeStringNoLocale<T
>(thing
, property
, value
): T
Create a new Thing with the given unlocalised string removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove an unlocalised string value from. |
|
|
Property for which to remove the given string value. |
|
|
String to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
removeStringWithLocale#
▸ removeStringWithLocale<T
>(thing
, property
, value
, locale
): T
Create a new Thing with the given localised string removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a localised string value from. |
|
|
Property for which to remove the given localised string value. |
|
|
String to remove from |
|
|
Locale of the string to remove. |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Defined in#
removeTime#
▸ removeTime<T
>(thing
, property
, value
): T
Create a new Thing with the given datetime removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a datetime value from. |
|
|
Property for which to remove the given datetime value. |
|
|
Time to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.
Since
1.10.0
Defined in#
removeUrl#
▸ removeUrl<T
>(thing
, property
, value
): T
Create a new Thing with the given URL removed for the given Property.
The original thing
is not modified; this function returns a cloned Thing with updated values.
Type parameters#
Name |
Type |
---|---|
|
extends |
Parameters#
Name |
Type |
Description |
---|---|---|
|
|
Thing to remove a URL value from. |
|
|
Property for which to remove the given URL value. |
|
|
URL to remove from |
Returns#
T
A new Thing equal to the input Thing with the given value removed for the given Property.