Check property ownership in Validate
There needs to be a way to check property ownership in Validate and then by extension through Assert.
const Val = require('./Validate')
class PartOne { foo () { console.log('bar') }
class PartTwo extends PartOne { bar () { console.log('baz') }
const one = new PartOne()
const two = new PartTwo()
console.log(Val.isPropertyLocal(one, 'foo')) // true
console.log(Val.isPropertyLocal(two, 'foo')) // false
// now for use in iteration
console.log(Val.isIterable(one, 'foo')) // false
Edited by Bryan Tong