three-stupid-array-unique-func

1.1.0 • Public • Published

three-stupid-array-uniquify-func

Just like the package name, there are three stupid array unqiuify functions.

usage

array uniquer:

const { setUniquer ,forEachUniquer, reduceUniquer } = require('three-stupid-array-uniquify-func')
const thisIsAnArray = [1, 1, 2, '1', 3, 4, '4', 3, 4, 2]

setUniquer(thisIsAnArray)
forEachUniquer(thisIsAnArray)
reduceUniquer(thisIsAnArray)
// All of them output the same array: [1, 2, '1', 3, 4, '4']
// <doge />

proAjax:

/**
 * An promisify ajax function
 * @param {String} baseUrl An url.
 * @param {Object} options Define request's method, data, headers, progress tag...(unfinish)
 * @return {Object} There are three functions to process the response data into text,json and blob.
 */
// I'm lazy...

/three-stupid-array-unique-func/

    Package Sidebar

    Install

    npm i three-stupid-array-unique-func

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • ahabhgk