1.0.16 • Published 8 years ago

has-own-properties v1.0.16

Weekly downloads
1
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago