+
Skip to content

injoonH/kotlinic

Repository files navigation

Kotlinic

Kotlinic is a JavaScript/TypeScript library that brings Kotlin-like extension functions to your codebase, enabling a more functional and expressive coding style.

Features

  • A rich set of extension functions inspired by Kotlin
  • Works seamlessly with JavaScript and TypeScript
  • Functional programming utilities for arrays, objects, and more

Installation

npm install kotlinic

Usage

import { mapNotNull } from 'kotlinic/collections'

const numbers = [1, 2, null, 4, null, 6]
const nonNullNumbers = mapNotNull(numbers, (it) => it)

console.log(nonNullNumbers) // Output: [1, 2, 4, 6]

License

MIT © Injoon Hwang. See LICENSE for details.

About

A lightweight TypeScript utility library inspired by Kotlin.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载