Skip to content

Commit c7a319b

Browse files
committed
clarify prepend in readme
1 parent f238339 commit c7a319b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ The SDK supports the operations `set`, `setOnce`, `unset`, and `add` on individu
120120
amplitude.identify(identify);
121121
```
122122

123-
6. `prepend`: this will prepend a value or values to a user property. If the user property does not have a value set yet, it will be initialized to an empty list before the new values are prepended. If the user property has an existing value and it is not a list, it will be converted into a list with the new value prepended.
123+
6. `prepend`: this will prepend a value or values to a user property. Prepend means inserting the value(s) at the front of a given list. If the user property does not have a value set yet, it will be initialized to an empty list before the new values are prepended. If the user property has an existing value and it is not a list, it will be converted into a list with the new value prepended.
124124

125125
```javascript
126126
var identify = new amplitude.Identify().prepend('ab-tests', 'new-user-test').prepend('some_list', [1, 2, 3, 4, 'values']);

0 commit comments

Comments
 (0)