Module:Util/doc

< Module:Util
Revision as of 09:08, 15 June 2025 by 天津风不是天津的风 (talk | contribs) (merge from official wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Util


This is a meta module.
This module is meant to be used only by other modules. It should not be invoked in wikitext.

Overview

Provides utility functions for programming modules.

Structure

Group Function Description
string trim Trim whitespaces and tabs from a string.
trimend Trim whitespaces and tabs from the end of a string.
split Splits a string into a table.
table deepcopy Copy table and all subtables. (Deep-copy)
merge Recursively merges and/or deep-copies tables.

Usage

This module should be loaded with require().