Skip to content

Commit f619522

Browse files
refactor(Data): add the Symbol.for('value') method.
1 parent 14ee1d0 commit f619522

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/lib/data.class.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ export class Data<Type> extends DataCore<Type> {
4646
this.#value = new Value(value);
4747
}
4848

49+
/**
50+
* @description
51+
* @public
52+
* @returns {Type}
53+
*/
54+
public [Symbol.for('value')](): Type {
55+
return this.value;
56+
}
57+
4958
/**
5059
* @description Clears the value to `null`.
5160
* @public

0 commit comments

Comments
 (0)