Skip to content

Commit 49f901a

Browse files
committed
docs: use consistent alias
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent aea0a01 commit 49f901a

File tree

1 file changed

+23
-23
lines changed
  • lib/node_modules/@stdlib/assert/has-property

1 file changed

+23
-23
lines changed

lib/node_modules/@stdlib/assert/has-property/README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,25 @@ limitations under the License.
2727
## Usage
2828

2929
```javascript
30-
var hasProp = require( '@stdlib/assert/has-property' );
30+
var hasProperty = require( '@stdlib/assert/has-property' );
3131
```
3232

33-
#### hasProp( value, property )
33+
#### hasProperty( value, property )
3434

35-
Returns a `boolean` indicating if a `value` has a specified `property`, either own or inherited.
35+
Returns a boolean indicating if a `value` has a specified `property`, either own or inherited.
3636

3737
```javascript
3838
var value = {
3939
'beep': 'boop'
4040
};
4141

42-
var bool = hasProp( value, 'beep' );
42+
var bool = hasProperty( value, 'beep' );
4343
// returns true
4444

45-
bool = hasProp( value, 'hasOwnProperty' );
45+
bool = hasProperty( value, 'hasOwnProperty' );
4646
// returns true
4747

48-
bool = hasProp( value, 'bap' );
48+
bool = hasProperty( value, 'bap' );
4949
// returns false
5050
```
5151

@@ -60,33 +60,33 @@ bool = hasProp( value, 'bap' );
6060
- The function does **not** throw when provided `null` or `undefined`. Instead, the function returns `false`.
6161

6262
```javascript
63-
var bool = hasProp( null, 'a' );
63+
var bool = hasProperty( null, 'a' );
6464
// returns false
6565

66-
bool = hasProp( void 0, 'a' );
66+
bool = hasProperty( void 0, 'a' );
6767
// returns false
6868
```
6969

70-
- Value arguments other than `null` or `undefined` are coerced to `objects`.
70+
- Value arguments other than `null` or `undefined` are coerced to objects.
7171

7272
```javascript
73-
var bool = hasProp( 'beep', 'length' );
73+
var bool = hasProperty( 'beep', 'length' );
7474
// returns true
7575
```
7676

77-
- Non-symbol property arguments are coerced to `strings`.
77+
- Non-symbol property arguments are coerced to strings.
7878

7979
```javascript
8080
var value = {
8181
'null': false
8282
};
83-
var bool = hasProp( value, null );
83+
var bool = hasProperty( value, null );
8484
// returns true
8585
8686
value = {
8787
'[object Object]': false
8888
};
89-
bool = hasProp( value, {} );
89+
bool = hasProperty( value, {} );
9090
// returns true
9191
```
9292

@@ -98,35 +98,35 @@ bool = hasProp( value, 'bap' );
9898

9999
## Examples
100100

101-
<!-- eslint-disable object-curly-newline, object-curly-spacing -->
101+
<!-- eslint-disable object-curly-newline, object-curly-spacing, stdlib/eol-open-bracket-spacing -->
102102

103103
<!-- eslint no-undef: "error" -->
104104

105105
```javascript
106-
var hasProp = require( '@stdlib/assert/has-property' );
106+
var hasProperty = require( '@stdlib/assert/has-property' );
107107
108-
var bool = hasProp( { 'a': 'b' }, 'a' );
108+
var bool = hasProperty( { 'a': 'b' }, 'a' );
109109
// returns true
110110
111-
bool = hasProp( {}, 'hasOwnProperty' );
111+
bool = hasProperty( {}, 'hasOwnProperty' );
112112
// returns true
113113
114-
bool = hasProp( { 'a': 'b' }, 'c' );
114+
bool = hasProperty( { 'a': 'b' }, 'c' );
115115
// returns false
116116
117-
bool = hasProp( { 'a': 'b' }, null );
117+
bool = hasProperty( { 'a': 'b' }, null );
118118
// returns false
119119
120-
bool = hasProp( null, 'a' );
120+
bool = hasProperty( null, 'a' );
121121
// returns false
122122
123-
bool = hasProp( void 0, 'a' );
123+
bool = hasProperty( void 0, 'a' );
124124
// returns false
125125
126-
bool = hasProp( { 'null': false }, null );
126+
bool = hasProperty( { 'null': false }, null );
127127
// returns true
128128
129-
bool = hasProp( { '[object Object]': false }, {} );
129+
bool = hasProperty( { '[object Object]': false }, {} );
130130
// returns true
131131
```
132132

0 commit comments

Comments
 (0)