1.0.16 • Published 7 years ago

has-own-properties v1.0.16

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Extends Object with .hasOwnProperties – an array version of .hasOwnProperty.

Returns boolean true if every specified property is found.

Usage:

const dog = {tail: 1, fur: 1}

console.log(
    dog.hasOwnProperties(['tail', 'fur'])
)
// true

Alternative(s) to using this library:

const dog = {tail: 1, fur: 1}

console.log(
    ['tail', 'fur'].every(ele=>dog.hasOwnProperty(ele))
)
// true

JavaScript Style Guide

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago