1.0.0-alpha.5 • Published 11 months ago

@patient-nz/medical-cannabis-data v1.0.0-alpha.5

Weekly downloads
-
License
CC-BY-4.0
Repository
github
Last release
11 months ago

Patient NZ - Medical Cannabis related Data & Statistics

Usage:

import { socialMedia, PollReportData } from "@patient-nz/medical-cannabis-data";

const {
    reddit: {
        polls
    }
} = socialMedia;

// Unique list of up to date poll data
const allPollData = Object.values(polls)
    .flatMap<PollReportData>(value => value)
    .filter((poll, index, array) => {
        const before = array.slice(0, index);
        const foundBefore = before.find(other => other.url === poll.url);
        return !foundBefore;
    });

License

This work is licensed under a Creative Commons Attribution 4.0 International License.

CC BY 4.0

1.0.0-alpha.5

11 months ago

1.0.0-alpha.4

11 months ago

1.0.0-alpha.3

11 months ago

1.0.0-alpha.2

11 months ago

1.0.0-alpha.1

11 months ago

1.0.0-alpha.0

11 months ago