You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Completely erazes something from the realms of existance.
183
+
Completely erazes something from the realms of existence.
184
184
185
185
Imagine you are a content editor, and there is that notorious post you wish to get rid of. Once you clicked a shiny "Delete post" button, the CMS performed a `deletePost` action, **not**`removePost`.
186
186
@@ -193,7 +193,7 @@ function deletePost(id) {
193
193
> See also [remove](#remove).
194
194
195
195
### `compose`
196
-
Creates a new data from the existing one. Mostly applicable to stringsor objects.
196
+
Creates a new data from the existing one. Mostly applicable to strings, objects, or functions.
197
197
198
198
```js
199
199
functioncomposePageUrl(pageName, pageId) {
@@ -204,11 +204,10 @@ function composePageUrl(pageName, pageId) {
204
204
> See also [get](#get).
205
205
206
206
### `handle`
207
-
Handles a dedicated action. Often used in naming the callback methods.
207
+
Handles an action. Often used when naming a callback method.
208
208
209
209
```js
210
-
functionhandleLinkClick(event) {
211
-
event.preventDefault()
210
+
functionhandleLinkClick() {
212
211
console.log('Clicked a link!')
213
212
}
214
213
@@ -235,16 +234,16 @@ function getRecentPosts(posts) {
235
234
}
236
235
```
237
236
238
-
> Note that language-specific assumptions may allow to ommit the context in some cases. For example, in JavaScript it is common that `filter` operates on Array. Adding explicit `filterArray` would be unnecessary.
237
+
> Some language-specific assumptions may allow to ommit the context. For example, in JavaScript it is common that `filter` operates on Array. Adding explicit `filterArray` would be unnecessary.
239
238
240
239
---
241
240
242
241
## Prefixes
243
242
244
-
Prefix enhances the meaning of a variable.
243
+
Prefix enhances the meaning of a variable. It is rarely used in function names.
245
244
246
245
### `is`
247
-
Describes certain characteristic or state of the current context (returns`boolean`).
246
+
Describes a characteristic or state of the current context (usually`boolean`).
248
247
249
248
```js
250
249
constcolor='blue'
@@ -257,7 +256,7 @@ if (isBlue && isPresent) {
257
256
```
258
257
259
258
### `has`
260
-
Describes whether the current context possesses a certain value or state (returns`boolean`).
259
+
Describes whether the current context possesses a certain value or state (usually`boolean`).
0 commit comments