Skip to content

StrongSet, a more powerful and improved version of the set function

License

Notifications You must be signed in to change notification settings

pordarman/Strong-Set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Alisa Logo

Package Name Package size Version License

NPM

Source file


Creator(s)


Social media accounts


What is this module?

  • This module is more advanced version of Set function

  • This module provides a more stable way for you by eliminating the deficiencies and errors of the Set function

  • It has all the commands you need and there is an explanation of how each command should be used


So how to use?

It's very simple, first you have to open any javascript file and write the following in it:

// Node.js
const Strong_Set = require("strong-set")

// Without node.js
import Strong_Set from "strong-set"


// Build without any data in it
const StrongSet_1 = new Strong_Set()

// Build with data inside (Array)
const StrongSet_2 = new Strong_Set(["value", "anotherValue"])

// Build with data inside (Set or StrongSet)
const StrongSet_3 = new Strong_Set(StrongSet_1)

Each StrongSet specifies a different Set function and the data they all hold is different. You can increase this as much as you want

After typing this you can access all commands


CAUTION!!

Please make your definitions as above. If you have made a definition as below, the module will not work properly and will give an error!

// Incorrect command definition

const Strong_Set = require("strong-set")

const { has, add } = new Strong_Set()
// This command will throw an error!


const StrongSet = new Strong_Set()
// This command will work as it should

Example

Now let's show how to write data to the Set function and check the written data

// Writing data to the Set function
StrongSet.add("hello")
StrongSet.add({ hello: "World!" })

// Now when we print the StrongSet function to the console, the following will appear on the screen:

Writing data to the Set function


Now let's try to pull the data we wrote

// Now let's check the data we wrote
StrongSet.has("hello") // true

StrongSet.has({ hello: "World!" }) // true
// If you tried to check it with the regular Set function, it would most likely return false.
// But thanks to this StrongSet module, it will return whatever data you typed, no matter what you typed

StrongSet module always wins


So why strong-set?

  • The StrongSet module is a fairly simple yet effective module and overpowered for its package size

  • The StrongSet module is an open source module, so if you get an error you can fix it yourself

  • The StrongSet module is being developed every day, helping you in the best way with new features and increasing performance

  • You don't have to wait long while downloading due to the low package size

  • Aaaannddd if you download it you will make me very happy 👉👈


Updates

v0.0.1

  • Module shared publicly 🥳🥳

Please do not forget to use it in the latest version for more stable and performance of the module!


And finally

  • If you want to support this module, if you request me on github, I will be happy to help you

  • Thank you for reading this far, i love you 💗

  • See you in my next modules!


lovee

About

StrongSet, a more powerful and improved version of the set function

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published