Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

like-ar

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

like-ar - npm Package Compare versions

Comparing version 0.2.11 to 0.2.12

16

like-ar.d.ts
declare module "like-ar"{
type ObjectWithArrayFunctions<T>={
forEach:( callback:(value:T , key:string)=>void ) => ObjectWithArrayFunctions<T>
map :<U>( callback:(value:T, key:string)=>U ) => ObjectWithArrayFunctions<U>
filter :( callback:(value:T , key:string)=>boolean) => ObjectWithArrayFunctions<T>
build :<U>( callback:(value:T, key:string)=>{[key:string]:U}) => ObjectWithArrayFunctions<U>
keys :() => string[]
type ObjectWithArrayFunctions<T, K extends string|number|symbol>={
forEach: ( callback:(value:T, key:K)=>void ) => ObjectWithArrayFunctions<T,K>
map :<U>( callback:(value:T, key:K)=>U ) => ObjectWithArrayFunctions<U,K>
filter : ( callback:(value:T, key:K)=>boolean) => ObjectWithArrayFunctions<T,K>
build :<U,K2 extends keyof {}>(callback:(value:T,key:K)=>{[key in K2]:U}) => ObjectWithArrayFunctions<U,K2>
keys :() => K[]
array :() => T[]
plain :() => {[key:string]:T}
plain :() => {[key in K]:T}
join :(separator:string) => string
}
function likeAr<T>(o:{[key:string]:T}):ObjectWithArrayFunctions<T>
function likeAr<T, K extends string|number|symbol>(o:{[key in K]: T}):ObjectWithArrayFunctions<T, K>
namespace likeAr{

@@ -14,0 +14,0 @@ function toPlainObject<T>(array:[string, T][]):{[key:string]:T}

{
"name": "like-ar",
"description": "Using objects like arrays with map, filter, forEach and others coming soon.",
"version": "0.2.11",
"version": "0.2.12",
"author": "Codenautas <codenautas@googlegroups.com>",

@@ -6,0 +6,0 @@ "repository": "codenautas/like-ar",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc