winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
5.07k stars 198 forks source link

Additional formating functions for string and num types #6744

Open asterkin opened 5 months ago

asterkin commented 5 months ago

Use Case

These are functions I found necessary in my practice:

  1. s.isBlank() - to check whether a string is empty after trimming (easy to implement in Wing)
  2. padLeft(...), padRight(...) - exist in TypeScript
  3. toFixed(...) - exists in TypeScript There are probably more.

Proposed Solution

You may find a sample implementation here: https://github.com/asterkin/endor.w/tree/main/stringx

Implementation Notes

No response

Component

SDK

Community Notes

github-actions[bot] commented 2 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!