Gathering detailed insights and metrics for @ganuz/is-data-descriptor
Gathering detailed insights and metrics for @ganuz/is-data-descriptor
Gathering detailed insights and metrics for @ganuz/is-data-descriptor
Gathering detailed insights and metrics for @ganuz/is-data-descriptor
npm install @ganuz/is-data-descriptor
Typescript
Module System
Node Version
NPM Version
TypeScript (99.81%)
JavaScript (0.19%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Commits
1 Watchers
2 Branches
1 Contributors
Updated on Apr 16, 2019
Latest Version
0.1.1
Package Id
@ganuz/is-data-descriptor@0.1.1
Unpacked Size
94.00 kB
Size
14.54 kB
File Count
27
NPM Version
lerna/3.13.2/node@v10.15.1+x64 (win32)
Node Version
10.15.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Is Data Descriptor is package from Ganuz library
1$ yarn add @ganuz/is-data-descriptor
Or
1$ npm install --save @ganuz/is-data-descriptor
Module
1import { 2 default as isDataDescriptor 3} from '@ganuz/is-data-descriptor';
Browser
1<script src="https://unpkg.com/@ganuz/is-data-descriptor/bundle.umd.min.js"></script>
1let { 2 isDataDescriptor 3} = G;
Examples
1 isDataDescriptor(); // => false 2 isDataDescriptor({}); // => false 3 isDataDescriptor({foo: 'bar'}); // => false 4 isDataDescriptor({writable: NaN}); // => true 5 isDataDescriptor({value: 1980, color: 'green'}); // => true 6 isDataDescriptor({value: undefined}); // => true 7 isDataDescriptor({get(){}, value: undefined}); // => true 8 isDataDescriptor({set(){}, writable: undefined}); // => true 9 isDataDescriptor({set(){}, get(){}, value: 70n, writable: false}); // => true
Note: This function does not validate that it is a valid descriptor, it only checks if the properties of data descriptor exist, for description validation use {@link isPropertyDescriptor}.
Module
1import { 2 default as assertDataDescriptor 3} from '@ganuz/is-data-descriptor/assert';
Browser
1<script src="https://unpkg.com/@ganuz/is-data-descriptor/assert/bundle.umd.min.js"></script>
1let { 2 assertDataDescriptor 3} = G;
Examples
1 assertDataDescriptor(undefined); // throw TypeError 2 assertDataDescriptor('foo'); // throw TypeError 3 assertDataDescriptor(true); // throw TypeError 4 assertDataDescriptor({}); // throw TypeError 5 assertDataDescriptor({value: undefined}); // => {value: undefined} 6 assertDataDescriptor({writable: true}); // => {writable: true} 7 assertDataDescriptor({value: 67, get() {}}); // => {value: 67, get() {}}
Copyright © Yisrael Eliev, Licensed under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/8 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
102 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More