partof
partof verifies whether one object is part of an other.
Last updated 5 years ago by thenativeweb-admin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install partof 
SYNC missed versions from official npm registry.

partof

partof verifies whether one object is part of an other.

Status

Category Status
Version npm
Dependencies David
Dev dependencies David
Build GitHub Actions
License GitHub

Installation

$ npm install partof

Quick start

First you need to add a reference to partof in your application:

const { partOf } = require('partof');

If you use TypeScript, use the following code instead:

import { partOf } from 'partof';

To verify whether an object is part of an other, call the partOf function and provide the presumable subset as well as the superset object:

const potentialSubset = { foo: 'bar' },
      superset = { foo: 'bar', bas: 'baz' };

console.log(partOf(potentialSubset, superset));
// => true

Running quality assurance

To run quality assurance for this module use roboter:

$ npx roboter

Current Tags

  • 3.0.7                                ...           latest (5 years ago)

13 Versions

  • 3.0.7                                ...           5 years ago
  • 3.0.6                                ...           5 years ago
  • 3.0.5                                ...           5 years ago
  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           5 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           6 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.0                                ...           8 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.0                                ...           11 years ago
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 7
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |